The CSS
.main blockquote p:first-child:before {
content: '“';
position: absolute;
top: 7px;
left: 0;
}
.main blockquote p:last-child:after {
content: '”';
float: right;
position: absolute;
bottom: -9px;
right: 7px;
}
The Code
<blockquote>
<p>A quote about many wonderful things...</p>
</blockquote>
This works in most browsers... in IE8, I only get the before quote... what am I missing?
last-child
does not support ie8. You have to use jquery for doing so
The :last-child selector is not supported in IE8 and earlier versions. http://www.w3schools.com/cssref/sel_last-child.asp Use some Jquery code
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.