我正在嘗試僅爲blockquotes的最後一段添加結束引號。最後一個孩子不能在我的blockquote中工作
我的CSS代碼如下:
blockquote p:last-child:after{
content: close-quote;
}
而我的HTML是:
<blockquote>
<p>Travel is fatal to prejudice, bigotry, and narrow-mindedness, and many of our people need it sorely on these accounts. Broad, wholesome, charitable views of men and things cannot be acquired by vegetating in one little corner of the earth all one's lifetime.</p>
<p>Here is second paragraph</p>
</blockquote>
不知何故,這是行不通的。我回顧了w3schools上的最後一個孩子的規範,似乎都是正確的。
下面是實際的網頁:http://www.aspenwebsites.com/lothlorien/layouts-typography/
你能請告知我在做什麼錯。謝謝。也被用於open-quote
時
對不起,我從代碼示例刪除