实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS appearance 属性 实例 - 自学教程(runoops.com)</title> <style> div { appearance: button; -moz-appearance: button; /* Firefox */ -webkit-appearance: button; /* Safari and Chrome */ } </style> </head> <body> <p><b>注意:</b> Internet Explorer 和 Opera 不支持 appearance 属性.</p> <div>Some text</div> </body> </html>
运行结果: