僞類 僞元素

僞類  僞元素 css

 

CSS中:和:: - CSDN博客 https://blog.csdn.net/u014527697/article/details/81087139app

 Pseudo-elements - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elementsspa

A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s). For example, ::first-line can be used to change the font of the first line of a paragraph..net




/* The first line of every <p> element. */ p::first-line { color: blue; text-transform: uppercase; }

Pseudo-elements - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elementscode

相關文章
相關標籤/搜索