- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
HTML5 <button>
在 Mobile Safari 中似乎具有固定的、不可更改的左右填充。 Here's a demo加上它在 Safari 5 和 iOS4 中的外观。
我怎样才能去掉那个填充?
最佳答案
只要你不需要原生控制按钮的外观,并且可以在 CSS 中做你自己的样式,只需添加 -webkit-appearance: none
,你应该可以完全控制元素。
您也可以尝试使用 -webkit-appearance: button
或 -webkit-appearance: pushbutton
来获取默认样式。
您可以看到其中的一些 at work here .
关于iPhone <button> 填充不变?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3430506/
我遇到过这个 html: 上面的html和这个有什么区别: 最佳答案 来自MDN page on the tag : 对于 type 的属性标签,可能的值是: 提交:按钮将表单数据提交给服务器
Button button= (Button) findViewbyID(R.id.button); 和 Button button = new Button(this); 有什么区别? 最佳答案 有
我是一名优秀的程序员,十分优秀!