我使用CSS标记通过CSS属性text-overflow: ellipsis
来显示一些修剪过的单词的完整内容。
当使用<abbr>
时,这些单词会有一个带点的下划线,悬停时光标会变成带问号的光标。
我确实设法用这个改变了它。但是,我不确定这是最好的方法,这种方法有什么问题吗?
abbr[title] {
border-bottom: none !important;
cursor: default !important;
}
发布于 2015-08-23 08:23:29
从v40 Firefox switched开始,再到使用文本装饰来提供下划线和chromium将是doing it that way too。因此,如果您需要支持这些浏览器,则应该更新您的代码以将其包括在内:
abbr[title] {
border-bottom: none !important;
cursor: inherit !important;
text-decoration: none !important;
}
发布于 2014-10-09 18:54:17
发布于 2016-08-29 11:08:40
https://stackoverflow.com/questions/26276556
复制相似问题