我已尝试使用以下网址中的示例。我尝试的是在内联属性样式中应用 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>