©
This document uses PHP Chinese website manual Release
appearance:none | button | button-bevel ...
默认值:none
适用于:所有元素
继承性:无
动画性:否
计算值:指定值
如果你想去除元素本身的外观并进行自定义,可以设置为none
对应的脚本特性为appearance。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-11.0 | 2.0-40.0-moz- | 4.0-45.0-webkit- | 6.0-8.0-webkit- | 15.0-29.0-webkit- | 6.0-8.3-webkit- | 2.1-4.4.4-webkit- | 18.0-42.0-webkit- |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>appearance_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> </head> <body> 请选择要测试的appearance值: <select id="choice"></select><br> <span></span> <script> (function() { var $ = opener.$, choice = document.getElementById("choice"); choice.onchange = function() { var val = this.value, span = $("span", document).css("appearance", val); span.html(val === span.css("appearance") ? "" : "不支持"); } $("#value dt").each(function(i) { var val = this.innerHTML.replace(/[^\w-]/g, ""); choice.options[i] = new Option(val, val); }); })(); </script> </body> </html>
点击 "运行实例" 按钮查看在线实例