关于一个Body全局样式不解的地方?_html/css_WEB-ITnose
移动Web页面的一段CSS样式,有些地方不是太解。
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

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

熱門話題

本文討論了HTML< Progress>元素,其目的,樣式和與< meter>元素。主要重點是使用< progress>為了完成任務和LT;儀表>對於stati

本文討論了html< datalist>元素,通過提供自動完整建議,改善用戶體驗並減少錯誤來增強表格。Character計數:159

本文討論了HTML< meter>元素,用於在一個範圍內顯示標量或分數值及其在Web開發中的常見應用。它區分了< meter>從< progress>和前

本文討論了使用HTML5表單驗證屬性,例如必需的,圖案,最小,最大和長度限制,以直接在瀏覽器中驗證用戶輸入。

本文討論了視口元標籤,這對於移動設備上的響應式Web設計至關重要。它解釋瞭如何正確使用確保最佳的內容縮放和用戶交互,而濫用可能會導致設計和可訪問性問題。

本文討論了< iframe>將外部內容嵌入網頁,其常見用途,安全風險以及諸如對象標籤和API等替代方案的目的。

GiteePages靜態網站部署失敗:404錯誤排查與解決在使用Gitee...
