Difference between : and :: in CSS [duplicate]

<div class="question-status question-originals-of-duplicate"><p>This question already has an answer here:</p><ul><li><a href="/questions/10181729/should-i-use-single-or-double-colon-notation-for-pseudo-elements" dir="ltr">Should I use single or double colon notation for pseudo-elements?</a> <span class="question-originals-answer-count">4 answers</span></li></ul></div><p>Hi just want to clear up my mind to use colon / pseudo class in css.</p><p>If I use</p><pre><br /><code>div:before {<br /> // some css styles<br />}<br /></code><br /></pre><p>OR</p><pre><br /><code>div::before {<br /> // some css styles<br />}<br /></code><br /></pre><p>Both works same. So what is the difference between single colon <code>:</code> or double colon <code>::</code>?</p><br /><h2>Click here view more answers <a href="http://ift.tt/1OrGHFo">http://ift.tt/1OrGHFo</a></h2>

Nhận xét

Bài đăng phổ biến từ blog này

Align div to bottom of the page in bootstrap

Align elements inside an tag vertically

Javascript is unable to stop page loading