我想用css干燥半圆。在所有其他浏览器中,它运行良好,但是在Android本机浏览器中,它看起来像这样:

https://pp.vk.me/c540102/c617716/v617716567/1a373/HP4yReINnwg.jpg

div {
    width: 56px;
    height: 30px;
    border-radius: 56px 56px 0px 0px;
    background: green;
    background: #7ed035;
}


这是jsfiddle中的代码:
http://jsfiddle.net/ewz7us6r/1/

最佳答案

尝试独立声明它们,即;

border-top-left-radius: 56px;
border-top-right-radius: 56px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;


因为可能与此border-radius not working in modern native Android browser有关

关于html - Android native 浏览器中CSS半圆的错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26118822/

10-12 07:35
查看更多