css选择器 ~ (波浪号)、+(加号)、>(大于号)的用法解析和举例

Css小技巧
css选择器 ~ (波浪号)、+(加号)、>(大于号)的用法解析和举例
CSS3模块发布时间表
2002年5月15日发布CSS3 Line模块,该模块定义了文本行模型CSS3中 overflow:hidden;作用(创建BFC)
The CSS attribute selector matches elements based on the presence or value of a given attribute.
/* <a> elements with a title attribute */
a[title] {
color: purple;
}
/* <a> elements with an href matching "https://example.org" */
a[href="https://example.org"]
{
color: green;
}
/* <a> elements with an href containing "example" */
a[href*="example"] {
font-size: 2em;
}
/* <a> elements with an href ending ".org" */
a[href$=".org"] {
font-style: italic;
}
/* <a> elements whose class attribute contains the word "logo" */
a[class~="logo"] {
padding: 2px;
}
CSS: 如何删除链接<a>的下划线?
代码:
text-decoration: none;