Css 在伪元素中嵌套伪元素
我有一个:before作为开盘报价,一个:after作为收盘报价 现在我想要的是一个:after:after作为“引用”参考,但我无法让它发挥作用 有人知道这是否可能吗 到目前为止,我的代码是:-Css 在伪元素中嵌套伪元素,css,pseudo-element,Css,Pseudo Element,我有一个:before作为开盘报价,一个:after作为收盘报价 现在我想要的是一个:after:after作为“引用”参考,但我无法让它发挥作用 有人知道这是否可能吗 到目前为止,我的代码是:- blockquote:before { content: '\201C'; } blockquote:after { content: '\201D'; } blockquote { font-size: 22px; line-height: 24px; text-indent:60px
blockquote:before { content: '\201C'; }
blockquote:after { content: '\201D'; }
blockquote {
font-size: 22px;
line-height: 24px;
text-indent:60px;
}
blockquote:before {
font-size: 170px;
margin-left: -136px;
margin-top: 50px;
opacity: 0.2;
position: absolute;
overflow:visible;
float:left;
width:135px;
}
blockquote:after {
float: right;
font-size: 170px;
margin-right: 35px;
margin-top: 33px;
opacity: 0.2;
overflow:visible;
width:135px;
}
blockquote[cite]:after:after {
display: block;
text-align: right;
content: "\2014\ " attr(cite);
font-style: normal;
font-size: 0.8em;
}
提出了在之前和之后嵌套伪元素的思想;请参阅生成和替换的内容模块。然而,这个模块已经被放弃了,所以在重新发布之前,我不会对这个文档的实现屏住呼吸。即便如此,嵌套内容伪元素是否仍然是一件事还不得而知。@Zeaklous:不,这个特定的文档可以被视为已被放弃,因为它正在等待完全重写-请参见,但目前仅由Firefox支持。