xhtml mp ºÍ wap cssÓ¦Óý²½âÒ»
ʹÓÃwap css¿ÉÒÔ°ÑÄÚÈݺͱíʾ·ÖÀ룬ºÃ´¦£º
1.ʹÓÃwcssʹÄÚÈݺÍÑùʽ·ÖÀ룬¿ÉÒÔΪ²»Í¬ÊÖ»ú£¬Éè¼Æ¼¸¸ö°æ±¾wap css style sheet ºÍÖ¸¶¨²»Í¬ÆÁ
Ä»´óС¡£ÄÚÈÝÈ´²»ÐèÒªÐ޸ġ£
2.Ϊ²»Í¬É豸£¬ÈçPC,PDA,MOBILE PHONE£¬×¼±¸²»Í¬Ñùʽ±í£¬ÄÚÈݲ»ÐèÒª¸Ä±ä¡£
3.¼õÉÙά»¤Ò»¸öwapÕ¾µã£¬µ±ÓÐеĵ绰£¬Ö»ÐèÒªÔö¼ÓеÄÑùʽ±í£¬ÄÚÈݲ»ÐèÒªÐ޸ġ£
4.¶à¸öwapÒ³ÃæÓ¦ÓÃÒ»¸öwap cssÑùʽ±í£¬Èç¹ûÒª¸Ä±äÒ³Ã棬ֻÐèÒªÐÞ¸ÄÑùʽ±í¡£
5.ÔÚ¶à¸ö¹¤³ÌÖÐÖظ´Ê¹ÓÃÑùʽ±í¡£
6.Èç¹ûÓ¦ÓÃÑùʽ±í£¬ÕâÑùmobileÖ»ÊÇÐèÒªÏÂÔØÒ»´Î£¬È»ºó¾Í»á´æÔÚ»º´æÖУ¬Ï´ηÃÎʲ»ÐèÒªÔÚÁ¬½Ó·þ
ÎñÆ÷¡£
7.xhtml mp Îĵµ±äµÃ¸üС£¬ÒòΪ¿ÉÒ԰Ѳ¼¾ÖºÍÑùʽÐÅÏ¢·ÅÈëÍⲿwap cssÑùʽ±íÖС£Ð¡ÎļþÏÂÔØʱ¼ä
¾Í¸ü¶Ì¡£
ȱµã£º
1.²»Í¬wapä¯ÀÀÆ÷¾ßÓжÔwcssµÄ²»Í¬Ö§³Ö¶È£¬Ò»¸öwapä¯ÀÀÆ÷Ö§³Ö£¬Ò²ÐíÁíÒ»¸ö¾Í²»Ö§³Ö¡£
2.Ò»¸öÍⲿwcssÑùʽ±í£¬ÔÚµÚÒ»´Îµ¼ÈëÑùʽ±íʱ£¬»áÔö¼ÓÇëÇóʱ¼ä£¬È磺
a. Ñùʽ±í²»ÔÙ»º´æÖÐ
b. xhtml mpºÍexternal wcssÊÇÁ½¸ö²»Í¬µÄÏÂÔØÇëÇó
c. Èç¹ûÄãÓÃwcssÖ¸¶¨mobile internet siteµÄ±íʾÐÅÏ¢£¬wcss½«±äµÃÏ൱´ó¡£
d. wap ä¯ÀÀÆ÷ÐèÒª¶îÍâµÄ½âÎöwcss
×¢Ò⣺
1.Ñùʽ±íʹÓã¬Ñ¡ÔñÆ÷Çø·Ö´óСд£¬¼´wcssºÍxhtml mpÖб£³ÖÒ»Ö£¡
eg: Ò³ÃæÖÐ<h1>df</h1> ,Ñùʽ±íÖУ¬±ØÐëh1Ò²ÊÇСд£¡
2.ÔªËØ.ÑùʽÃû====´ËÑùʽֻÄÜÓ¦ÓÃÔÚ´ËÔªËØÉÏ¡£
.ÑùʽÃû====´ÎÑùʽ¿ÉÓÃÓÚ¶à¸öÔªËØÉÏ¡£
3.ʹÓÃclass selector»òÕßid selectorÊÇÊ×Ñ¡µÄ£¬Ê¹ÓÃstyle attributeÐÐÄÚÑùʽ½«Òý·¢»ìÂÒ¡£
xhtml mp markup different:
1.div Óë span: span°üÀ¨Ò»¸ö¿éÔªËØ£¬ÈçÎı¾£»div °üÀ¨Ò»¸ö»ò¶à¸ö¿éÔªËØ£¬Èçp,h1,tableµÈÔªËØ¡£
Öصþ¹æÔò´¦Àí¶à×éwcss ÑùʽӦÓÃÓÚͬÑùÔªËØ£º
1.Èç¹ûÔÚͬһ¸öÎĵµ£¬Ó¦Óò»Í¬Ñùʽ£¬ÔÚͬһ¸öÔªËØÉÏÓ¦Óò»Í¬µÄÑùʽ£¬È¡×îºóµ¼ÈëµÄ»òÓ¦Óõġ£
²ÉÓþͽüÔÔò¡£
2.wcssµÄÎı¾×ÖÌåÊôÐÔ£º
a. ¼Ó´Ö£º<b></b>±êÇ©
b. бÌ壺<i></i>±êÇ©
c. ×ÖÌå±äС£º<smaller></smaller>
µ«ÊÇÕâÑù×öʹҳÃæ±äµÃ»ìÂÒ£¬Èç¹û"<h1><b>ºÇºÇ</b></h1>"Ó¦Óôˣ¬ÈçÒª¸Ä±ä£¬ÔòÓ¦ÓÃ
´ËÖÖÑùʽµÄ¶¼Òª¸Ä±ä¡£
²»Í¬phone support different font
Èç¹û×ÖÌ峬¹ýÒ»¸öµ¥´Ê£¬ÒªÓÃÒýºÅ
eg:
h3 {
font-family: "Times New Roman",Arial, Hel
Ïà¹ØÎĵµ£º
×Ô¼º¶¯ÊÖдiPhone wapä¯ÀÀÆ÷Ö®½çÃæ¼Ü¹¹Æª(ÊÖ°ÑÊÖ½ÌÄãiphone¿ª·¢ – ½ø½×ƪ)
×÷ÕߣºËﶫ·ç 2009-12-28£¨×ªÔØÇë×¢Ã÷³ö´¦£©
ÔÚ±ÊÕßµÄÉÏƪÎÄÕ¡¶×Ô¼º¶¯ÊÖдiPhone wapä¯ÀÀÆ÷Ö®BSD SocketÒýÇæƪ¡·ÖÐÒѾ³É¹¦½âÎö³öÀ´ÁËwmlÒ³ÃæÖеÄtag£¬Èç¹û¶ÁÕß×ÐϸµÄ»°¿ÉÄܻῴµ½ÀïÃæÖÐÎĵÄtagÏÔʾΪÂÒÂ룬ÕâÊÇÒòΪÔÚiPhoneÉÏĬÈϵÄÖÐÎı ......
1. ¶¨ÒåÑùʽ
1.1 °´html±êÇ©¶¨Òå
ÀýÈ磺body{background-color:#999999; text-align:center}
1.2 °´ÀඨÒå
ÀýÈ磺.style1{border-style:solid; border-color:#0000FF; border-width:1px}
1.3 °´id¶¨Òå
ÀýÈ磺#style2{border-style:solid; border-color:#FF0000; border-width:1px}
2. CSSµÄλÖúÍÒýÓÃ
......
Ñ¡ÔñÆ÷µÄ·Ö×é
Òâ˼¾ÍÊÇ˵¼¸¸öÑ¡ÔñÆ÷¿ÉÒÔͬʱʹÓÃÒ»¸öÉùÃ÷£¬µ«ÊÇÑ¡ÔñÆ÷Ö®¼ä¼Çסһ¶¨ÒªÓöººÅÀ´¸ô¿ª£¬ÕâÑùÎÒÃÇ»á½ÚÊ¡Á˺ܶà´úÂë
ÎÒÃǾٸöÀý×Ó°É£¡
h1,h2,h2,h3,h5,h6 {
color: red; background:blue;
}
ÕâÑùËùÓеÄh±êÌâ±êÇ©µÄ×ÖÌåÑÕÉ«ÊǺìÉ«£¬±³¾°ÊÇÀ¶É«£»Ó¦¸ÃÇå³þÁË°É£¡
css¼Ì³ÐÐÔµÄÎÊÌâ
×ÓÔªËؼ̳и¸ÔªËØµÄ ......
CSS:
<style type="text/css">
a{
color: #FFFF99;
text-decoration: none;
}
a:hover{
color: #FFFFFF;
text-decoration: underline;
}
#nav{
padding: 10px 10px 0;
font-size: 12px;
font-weight: bold;
margin: 1em 0 0;
......
CSSÂ˾µµÄʹÓ÷½·¨£ºfilter:filtername(parameters)¡¡¼´ filter:Â˾µÃû³Æ£¨²ÎÊý£©
alpha£ºÉèÖÃ͸Ã÷²ã´Î
blur£º´´½¨¸ßËÙ¶ÈÒƶ¯Ð§¹û£¬¼´Ä£ºýЧ¹û
chroma£ºÖÆ×÷רÓÃÑÕɫ͸Ã÷
DropShadow£º´´½¨¶ÔÏóµÄ¹Ì¶¨Ó°×Ó
FlipH£º´´½¨Ë®Æ½¾µÏñͼƬ
FlipV£º´´½¨´¹Ö±¾µÏñͼƬ
glow£º¼Ó¹â»ÔÔÚ¸½½ü¶ÔÏóµÄ±ßÍâ
gray£º°ÑͼƬ»Ò¶È»¯
inver ......