Hy那里,不能让它工作我有这样的东西
.body-post p:first-child:first-letter
{
font-size:240%;
}
这里是html:
<div class="body-post">
<p><img src="http://#" align="left" style="margin-right:5px;"/>
some text</p></div>
因此,如果没有图片,则第一个字母有效。有没有办法跳过 img 标签。我无法编辑源代码,因为我正在为博客域做一些模板。没什么大不了的,只是太混乱了。第一个字母应该选择字母而不是图像。