XHTML Òƶ¯¸ÅÒª (XHTML MP) / WAP 2.0 ½Ì³Ì
XHTML MP (XHTML Mobile Profile) ¼ò½é
ʲôÊÇ XHTML MP?
XHTML MP (¿ÉÀ©Õ¹±ê¼ÇÓïÑÔÒƶ¯¸ÅÒª) WAP 2.0 Öж¨ÒåµÄ±ê¼ÇÓïÑÔ. WAP 2.0 ÊÇ WAP ÂÛ̳ (ÏÖΪ¿ª·ÅÒƶ¯ÁªÃË [OMA]) ´´½¨µÄ×îеÄÒƶ¯·þÎñ˵Ã÷. ¶Ô WAP CSS (WAP ¼¶ÁªÑùʽµ¥»ò WCSS) µÄ˵Ã÷Ò²ÔÚ WAP 2.0 ÖÐ×÷Á˶¨Òå. WAP CSS ÊÇ XHTML Òƶ¯¸ÅÒªµÄ°éÂÂ, ¶þÕß³£±»Ò»ÆðʹÓÃ. ÓÐÁË WAP CSS, Äã¿ÉÒÔÇáËɵظıäÓë¸ñʽ»¯ XHTML MP Ò³ÃæµÄÕ¹ÏÖ.
XHTML Òƶ¯¸ÅÒªÊÇ XHTML µÄ×Ó¼¯, ÊÇ HTML µÄ¸üÑϸñµÄ°æ±¾. XHTML Òƶ¯¸ÅÒªÊÇ XHTML »ù´¡ (Basic, Ò²ÊÇ XHTML µÄÒ»¸ö×Ó¼¯) ¼ÓÉÏÁË XHTML ÍêÈ«°æÖÐһЩ¶îÍâµÄÔªËغÍÊôÐÔ.
XHTML Òƶ¯¸ÅÒªµÄÄ¿±ê, ÊÇ°ÑÒƶ¯ÒòÌØÍøä¯ÀÀºÍÍòάÍøä¯ÀÀµÄ¼¼Êõ½áºÏÆðÀ´. ÔÚ XHTML Òƶ¯¸ÅÒª²úÉú֮ǰ, WAP ¿ª·¢ÈËÔ±Óà WML ºÍ WMLScript ´´½¨ WAP ÍøÕ¾, ¶ø Web ³ÌÐòÔ±Óà HTML / XHTML ºÍ CSS ¿ª·¢ Web ÍøÕ¾.
XHTML Òƶ¯¸ÅÒª·¢²¼ºó, ÎÞÏßÊÀ½çºÍÓÐÏßÊÀ½çµÄ±ê¼ÇÓïÑÔ×îÖÕ»ã¾Ûµ½ÁËÒ»Æð. XHTML Òƶ¯¸ÅÒª ºÍ WAP CSS ¸³ÓèÁËÎÞÏßÒòÌØÍøÓ¦Óÿª·¢ÈËÔ±¸ü¶à¸üºÃµÄÕ¹ÏÖ¿ØÖÆ. È»¶ø, ×î´óµÄÓŵã, ÊÇÄãµÄ Web °æºÍÎÞÏß°æÒòÌØÍøÍøÕ¾¿ÉÒÔÓÃͬÑùµÄ¼¼Êõ¿ª·¢. Äã¿ÉÒÔÔÚÔÐÍ»¯ºÍ¿ª·¢¹ý³ÌÖÐÓÃÈκΠWeb ä¯ÀÀÆ÷²é¿´ÄãµÄ WAP2.0 Ó¦ÓóÌÐò.
WAP µÄÔçЩ°æ±¾ÊÇ 1.2.1. WAP 1.2.1 ÍøÕ¾ÊÇÓà WML ºÍ WMLScript ¿ª·¢µÄ. WAP 2.0 Ïòºó¼æÈÝ WAP 1.x. Òò´Ë, WAP 2.0 ÎÞÏßÉ豸¶Ô XHTML MP / WCSS ºÍ WML / WMLScript ÍøÕ¾¶¼¿ÉÒÔ·ÃÎÊ. Èç¹ûÄã¶Ôѧϰ WML »ò WMLScript ÓÐÐËȤ, ÇëÔĶÁÏà¹Ø WML ºÍ WMLScript ½Ì³Ì.
ÎÞÏß±ê¼ÇÓïÑԵĿª·¢
HTML
HTML (³¬Îı¾±ê¼ÇÓïÑÔ) ÓÃÓÚÍòάÍø (WWW) µÄ±ê¼ÇÓïÑÔ. WAP ¿ª·¢µÄÖ÷ҪĿ±êÖ®Ò»Êǽ«ÍòάÍø´øµ½Òƶ¯µç»°ºÍ PDA µÈÎÞÏßÉ豸ÉÏ. Òò´Ë, ÎÞÏßÊÀ½ç±ê¼ÇÓïÑÔµÄÐí¶àÌØÕ÷¶¼½è¼øÁË HTML. ÕâÒ²ÊÇ WAP ±ê×¼ (WML and XHTML Òƶ¯¸ÅÒª) Ö¸¶¨µÄ±ê¼ÇÓïÑÔÓë HTML Èç´ËÀàËƵÄÔÒò.
WML 1.x
WML (ÎÞÏß±ê¼ÇÓïÑÔ) ÊÇ WAP 1.x ˵Ã÷Öж¨ÒåµÄ±ê¼ÇÓïÑÔ. ËüÊÇÎÞÏßÉ豸µÄµÚÒ»¸ö±ê¼ÇÓïÑÔ±ê×¼. ÔÚÒýÈëËü֮ǰ, ÎÞÏßÁìÓòµÄÖ÷ÒªÍæ¼ÒÃÇ, Èç Openwave, Nokia ºÍ Ericsson ¶¼ÓÐËüÃÇ×Ô¼ºµÄ±ê¼ÇÓïÑÔ. WML ˵Ã÷ÊÇ WAP ÂÛ̳´´½¨µÄ. ¸ÃÂÛ̳ÓÉ Ericsson, Motorola, Nokia ºÍ Openwave ÓÚ1997ÄêºÏ½¨¶ø³É. Ä¿Ç°, Ðí¶à WAP ÍøÕ¾ÈÔȻʹÓà WML ×÷Ϊ±ê¼ÇÓïÑÔ.
XHTML
XHTML (¿ÉÀ©Õ¹³¬Îı¾±ê¼ÇÓïÑÔ) ÊÇÓà XML (¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ) ¶Ô HTML µÄÖØиñʽ»¯. XHTML ÖеıêÇ©Óë HTML ÖеÄÏàͬ. Äã¿ÉÒÔ½« XHTML ÊÓΪÓà XML Ó﷨д³öÀ´µÄ HTML. XH
Ïà¹ØÎĵµ£º
´ÓÖйúÒƶ¯¹ã¸æÖ÷Ҫϸ·ÖÊг¡¹æÄ£À´¿´£¬2006ÄêWAP¹ã¸æÊг¡¹æģΪ0.6ÒÚÔª£»ÖÁ2007Ä꣬WAP¹ã¸æÊг¡¹æÄ£Ô¤¼Æ½«´ïµ½1.7ÒÚÔª£¬Ôö³¤183%£»·¢Õ¹µ½2008Ä꣬WAP¹ã¸æÊг¡¹æÄ£Ô¤¼Æ½«´ïµ½3.5ÒÚÔª£¬Ôö³¤106%£»ÖÁ2010Ä꣬ÖйúWAP¹ã¸æÔ¤¼Æ½«´ïµ½7ÒÚÔªÊг¡¹æÄ£¡£2006-2010ÄêÖйúWAP¹ã¸æÊг¡¹æÄ£Äêƽ¾ù¸´ºÏÔö³¤ÂÊ´ïµ½85%£¬Êг¡±íÏÖ½«³¬¹ýÕûÌ ......
1."Îļþ"->"н¨ÍøÕ¾"->"ASP.NETÍøÕ¾"н¨Õ¾µã¡£
2.ɾ³ý"Default.aspx"Îļþ£¬"Ìí¼ÓÐÂÏî"->"Òƶ¯Web´°Ìå"¡£
3."Ìí¼ÓÐÂÏî"->"Òƶ¯WebÅäÖÃÎļþ"¡£
4.ÔÚweb.configµÄ<system.web>ÖÐÌí¼Ó
Ç¿ÖÆÊä³öwml
<browserCaps>
<res ......
×î½ü×Ô¼ºÊµÏÖÁËÒ»¸öwapä¯ÀÀÆ÷£¬³õÖÔʹÓÃÀ´×öÊý¾Ý²É¼¯µÄ£¬ÆäʵÓÃÀ´×öÍøÒ³ä¯ÀÀ¿´À´Ò²¿ÉÒÔ£¬²»¹ýj2meÉÏ»ù±¾¶¼²»Ö§³ÖgifͼƬ°¡£¬ËùÒÔÓÐЩͼƬ²»ÄÜÏÔʾ£¬»¹ÓоÍÊÇpostºº×ÖµÄʱºò·þÎñÆ÷»áÈÏΪÊÇÂÒÂë¡£
ÏÂÃæÊÇһЩ½Øͼ:
......