关于一个Body全局样式不解的地方?_html/css_WEB-ITnose
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了关于一个Body全局样式不解的地方?_html/css_WEB-ITnose,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2062字,纯文字阅读大概需要3分钟。
内容图文
![关于一个Body全局样式不解的地方?_html/css_WEB-ITnose](/upload/InfoBanner/zyjiaocheng/402/41006260f4a042e5bf5ba13367947c48.jpg)
body {
font: 16px/2 'Helvetica Neue', Helvetica, STHeiti, 'Hiragino Sans GB', sans-serif;
color: #ccc;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
text-transform: none;
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #f2f2f2;
}
问题:
text-transform: none;默认值也为none。写在这里貌似没什么太大的意思??? 为什么还要写???
“speak: none;"取消发音,具体作用是什么??? 为什么要写这个样式属性???
回复讨论(解决方案)
有大神知道这两个属性是怎么回事么???
移动端写这些也正常啊.
估计是外层有默认赋值,,,,这里进行了还原。。。。
估计是外层有默认赋值,,,,这里进行了还原。。。。
+1应该是。
网上查了一下speak: The speak property defines whether text should be rendered aurally and if so, how. 应该是实验阶段吧,基本没什么用。
Characteristics
Possible values
none
Suppresses aural rendering so that the element requires no time to speak. Note, however, that descendants may override this value and cause the element to be spoken. To ensure descendants do not override, use the display property. Note also the difference between an element whose volume property has a value of silent and an element whose speak property has the value none. If the volume property is silent, although no sound is generated, rendering the text takes up as much time as if the text were being spoken, including any pauses before and after the element. The resulting silence can be used in language teaching applications, for example, where the pause that is generated allows pupils sufficient time to speak out loud a word or phrase.
normal
Uses language-dependent pronunciation rules for rendering an element and its children.
spell-out
Spells the text one letter at a time (useful for acronyms and abbreviations).
inherit
Use the same computed value as the parent element for this property.
Default value
normal
Applies to
All elements
Inherited
Yes
内容总结
以上是互联网集市为您收集整理的关于一个Body全局样式不解的地方?_html/css_WEB-ITnose全部内容,希望文章能够帮你解决关于一个Body全局样式不解的地方?_html/css_WEB-ITnose所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。