在不同的“-webkit-appearance”选值情况下,button所渲染的效果是不一样的,详细的测试代码大家可使用safari浏览器点击这 里。有关于“-webkit-appearance”的详细介绍,这回算是知道了,最后我建议大家,我们可以直接在“reset.css”样式文件中加处 这么一句:
input[type="submit"], input[type="reset"], input[type="button"], button { -webkit-appearance: none; }
CSS3 去除苹果浏览器按钮input[type="submit"]和input[type="reset"]的默认样式
最新推荐文章于 2022-10-24 16:39:57 发布