CSS3 appearance 屬性
阿新 • • 發佈:2021-02-02
技術標籤:CSS
1.appearance屬性 為none去除該標籤的預設樣式,保留其原有功能
例如:
div{
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
}
讓div看上去像一個button
div
{
appearance:button;
-moz-appearance:button; /* Firefox */
-webkit-appearance:button; /* Safari and Chrome */
}
其它屬性值:
normal 正常呈現元素
icon 作為一個小圖片的呈現元素
button 作為一個按鈕,呈現元素
menu 作為一個使用者選項設定呈現元素選擇
field 作為一個輸入欄位呈現元素