CSS content ÊôÐÔ
ä¯ÀÀÆ÷Ö§³Ö
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
ËùÓÐä¯ÀÀÆ÷¶¼Ö§³Ö content ÊôÐÔ¡£
×¢ÊÍ£ºÈç¹ûÒѹ涨 !DOCTYPE£¬ÄÇô Internet Explorer 8 £¨ÒÔ¼°¸ü¸ß°æ±¾£©Ö§³Ö content ÊôÐÔ¡£
¶¨ÒåºÍÓ÷¨
content ÊôÐÔÓë :before ¼° :after Î±ÔªËØÅäºÏʹÓã¬À´²åÈëÉú³ÉÄÚÈÝ¡£
˵Ã÷
¸ÃÊôÐÔÓÃÓÚ¶¨ÒåÔªËØÖ®Ç°»òÖ®ºó·ÅÖõÄÉú³ÉÄÚÈÝ¡£Ä¬Èϵأ¬ÕâÍùÍùÊÇÐÐÄÚÄÚÈÝ£¬²»¹ý¸ÃÄÚÈÝ´´½¨µÄ¿òÀàÐÍ¿ÉÒÔÓÃÊôÐÔ display ¿ØÖÆ¡£
ĬÈÏÖµ£º | normal |
---|---|
¼Ì³ÐÐÔ£º | no |
°æ±¾£º | CSS2 |
JavaScript Óï·¨£º | object.style.content="url(beep.wav)" |
¿ÉÄܵÄÖµ
Öµ | ÃèÊö |
---|---|
none | |
normal | |
content specifications | |
inherit | ¹æ¶¨Ó¦¸Ã´Ó¸¸ÔªËؼ̳Рcontent ÊôÐÔµÄÖµ¡£ |
Ïà¹ØÒ³Ãæ
CSS ²Î¿¼Êֲ᣺CSS :before Î±ÔªËØ
CSS ²Î¿¼Êֲ᣺CSS :after Î±ÔªËØ
HTML DOM ²Î¿¼Êֲ᣺content ÊôÐÔ