-moz-user-focus
已棄用:此特性不再推薦。雖然某些瀏覽器可能仍然支援它,但它可能已經從相關的網路標準中刪除,可能正在刪除過程中,或者可能僅為相容性目的而保留。請避免使用它,如果可能,請更新現有程式碼;請參閱本頁底部的相容性表格以指導您的決策。請注意,此特性可能隨時停止工作。
非標準:此特性未標準化。我們不建議在生產環境中使用非標準特性,因為它們瀏覽器支援有限,並且可能會更改或被移除。但是,在沒有標準選項的特定情況下,它們可以是合適的替代方案。
-moz-user-focus CSS 屬性用於指示元素是否可以獲得焦點。
透過將其值設定為 ignore,你可以停用該元素獲得焦點,這意味著使用者將無法啟用該元素,並且該元素將在 Tab 鍵序列中被跳過。預設值為 none,它會停用元素獲得焦點,並且如果嘗試選擇該元素,則會移除其他元素上的焦點。
語法
css
/* Keyword values */
-moz-user-focus: none;
-moz-user-focus: normal;
-moz-user-focus: ignore;
/* Global values */
-moz-user-focus: inherit;
-moz-user-focus: initial;
-moz-user-focus: unset;
值
正式定義
正式語法
-moz-user-focus =
ignore |
normal |
none
示例
HTML
html
<input class="ignored" value="The user cannot focus on this element." />
CSS
css
.ignored {
-moz-user-focus: ignore;
}
規範
不屬於任何標準。
瀏覽器相容性
載入中…