html - android native 浏览器中的 css 半圆错误

标签 html css android-browser

我想用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/

相关文章:

javascript - 如何使用 Angular 或 jquery 限制复选框选择

Jquery 图片库图像在悬停时缩放

android - 从安卓浏览器获取url

html - 如何将 'overflow: scroll' 与动态大小的 div 容器一起使用?

html - 居中 Gif

html - 居中 2 个水平图像

javascript - 如何使用 JavaScript 来回旋转图像

html - 相同的样式为表格边框返回不同的输出

Android 浏览器渲染边界半径不正确,边界较大

android - 将文本保留在 Android 浏览器的屏幕上