这个缩写词和首字母缩略词选择器地址是什么?
What this abbr and acronym selectors address?
我正在寻找 Zen garden
项目之一的源代码,我发现了我以前从未见过的选择器:
abbr[title],
acronym[title] {
border-bottom-width: 0;
}
他们试图解决什么问题?他们的目的是什么?
html个元素:
缩写:
The HTML Abbreviation element () represents an abbreviation and
optionally provides a full description for it. If present, the title
attribute must contain this full description and nothing else.
abbr[title] {
color: red;
}
<p>I do <abbr title="Hypertext Markup Language">HTML</abbr>
</p>
缩写词
The HTML Acronym Element () allows authors to clearly
indicate a sequence of characters that compose an acronym or
abbreviation for a word.
Obsolete This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any
time. Try to avoid using it.
acronym[title] {
color: red;
}
<p>The <acronym title="World Wide Web">WWW</acronym> is only one component of the Internet.</p>
参考文献:
很简单,目标缩写标签的标题:)
我正在寻找 Zen garden
项目之一的源代码,我发现了我以前从未见过的选择器:
abbr[title],
acronym[title] {
border-bottom-width: 0;
}
他们试图解决什么问题?他们的目的是什么?
html个元素:
缩写:
The HTML Abbreviation element () represents an abbreviation and optionally provides a full description for it. If present, the title attribute must contain this full description and nothing else.
abbr[title] {
color: red;
}
<p>I do <abbr title="Hypertext Markup Language">HTML</abbr>
</p>
缩写词
The HTML Acronym Element () allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.
Obsolete This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
acronym[title] {
color: red;
}
<p>The <acronym title="World Wide Web">WWW</acronym> is only one component of the Internet.</p>
参考文献:
很简单,目标缩写标签的标题:)