我正在研究一些UIWebView
在 iOS 中使用的 CSS。我可以使用该属性在 iOS 6 中对 div 进行圆角处理border-radius
,但我无法使用border-radius
或-webkit-border-radius
属性在 iOS 5.1 中复制该效果。有解决方法,还是我做错了什么?这是CSS。
#ad-wrapper {
postion:absolute;
top:50%;
left:50%;
margin-left:-140px;
margin-top:-109px;
width:280px;
height:218px;
position:absolute;
overflow:hidden;
-webkit-border-radius:12px;
border-radius:12px;
}
适用于 iOS 6:
但不适用于 iOS 5.1:
我是 Web 开发的新手(在此之前主要完成了原生 iOS),因此感谢您提供任何帮助。