html - 为什么<abbr>标签在不一样的浏览器里表现不一样?
问题描述
一个html文件,里面有用到<abbr>标签,就比如这个<abbr>DOM</abbr>。
只有这个html文件,没加任何的CSS和JS代码。在Chrome和Safari中,和不加abbr一样的显示效果,但是鼠标悬停在关键词“DOM”上还是会显示注释。但是用Firefox打开就能发现有<abbr>包住的就有下划虚线。
为什么会有这种不一样呢?哪一种是以后的趋势?
下面是这个html文件的完整代码。是《JavaScript: DOM 编程艺术》里的。
<!DOCTYPE html><html lang='en'><head> <meta charset='utf-8' /> <title>Explaining the Document Object Model</title></head><body> <h1>What is Document Object Model?</h1> <p>The <abbr>W3C</abbr> defines the <abbr>DOM</abbr>as: </p> <blockquote cite='http://www.w3.org/DOM/'><p> A plateform- and langage-neutral interface that will allow programs and scripts to dynamically access the update the content, structure and style of documents.</p> </blockquote> <p>It is an <abbr>API</abbr> that can be used to navigate <abbr>HTML</abbr>and <abbr>XML</abbr> documents. </p></body></html>
谢谢
问题解答
回答1:何止html标签的显示不一样,连同一字体同一字号在各个浏览器里面的默认高度和显示都是会有差异的
相关文章:
1. javascript - swiper.js嵌套了swiper 初始设置不能向下一个滑动 结束后重新初始2. angular.js - angular-ui-bootstrap 报错无法使用?3. 为什么span的color非要内联样式才起作用?4. docker - 如何修改运行中容器的配置5. python - 如何修改twisted自带的日志输出格式?6. 老师,请问我打开browsersync出现这个问题怎么解决啊?7. 请问一下各位老鸟 我一直在学习独孤九贱 现在是在tp5 今天发现 这个系列视频没有实战8. 求救一下,用新版的phpstudy,数据库过段时间会消失是什么情况?9. html5 - H5做的手机分享页微信更新后,分享出去不再默认显示第一个图 作为缩略图10. 高并发写入和更新mysql

网公网安备