我已經嘗試了以下來自url的示例。我試圖在內聯屬性style中應用css僞元素。不知何故,它似乎不工作。任何建議,我將不勝感激。內聯屬性樣式中的CSS僞元素
http://www.w3.org/TR/2001/WD-css-style-attr-20010305
<p style="{color: green; width: 10em} ::first-letter {float: left; font-size: 300%}">
This is an example of a paragraph with inline style attribute rules to create a spot effect, in this case, a drop-cap first letter.
</p>
您不能將屬性內聯應用於僞元素或僞類。你必須使用嵌入或鏈接的CSS。 – Ming