HTML 5 È«¾Ö style ÊôÐÔ
ʵÀý
ÔÚ HTML ÎĵµÖÐʹÓà style ÊôÐÔ£º
<h1style="color:blue;text-align:center"
>This is a header</h1> <pstyle="color:green"
>This is a paragraph.</p>
¶¨ÒåºÍÓ÷¨
style ÊôÐÔ¹æ¶¨ÔªËØµÄÐÐÄÚÑùʽ£¨inline style£©¡£
style ÊôÐÔ½«¸²¸ÇÈκÎÈ«¾ÖµÄÑùʽÉ趨£¬ÀýÈçÔÚ <style> ±êÇ©»òÔÚÍⲿÑùʽ±íÖй涨µÄÑùʽ¡£
HTML 4.01 Óë HTML 5 Ö®¼äµÄ²îÒì
None.
Óï·¨
<element style="value">
ÊôÐÔÖµ
Öµ | ÃèÊö |
---|---|
style_definition | Ò»¸ö»ò¶à¸öÓɷֺŷָôµÄ CSS ÊôÐÔºÍÖµ¡£ |