简体   繁体   English

border-radius样式在android浏览器中不起作用

[英]border-radius style doesn't work in android browser

I created a website, which I intend to display in some mobile devices. 我创建了一个网站,我打算在一些移动设备上显示。 The thing is that I have created several menu options as circles. 问题是我创建了几个菜单选项作为圆圈。

To achieve this effect I use border-radius in a style sheet, and -webkit-border-radius and-moz-border-radius too. 为了达到这个效果,我在样式表中使用了border-radius,而在-webkit-border-radius和-moz-border-radius也是如此。

On the computer it looks well in the browsers I have (firefox and chrome), but when I move to the android browser, these circles are reset to be square divs. 在计算机上它在我拥有的浏览器(firefox和chrome)中看起来很好,但是当我移动到android浏览器时,这些圆圈被重置为方形div。 This occurs since the load of the page. 这是因为页面的加载。

may I use other special style for android? 我可以使用其他特殊风格的Android吗? Could I need something like the jQuery mobile? 我需要像jQuery mobile这样的东西吗?

In short I will put the code, but if anyone has gone something like, could share that information, please? 总之,我会把代码放进去,但是如果有人这样做了,可以分享这些信息吗? thanks 谢谢

See this post for the answer: Galaxy S4 stock browser CSS3 border-radius support? 看到这篇文章的答案: Galaxy S4股票浏览器CSS3 border-radius支持?

Just use the expanded border-left-radius, border-right-radius, etc as a workaround; 只需使用扩展的border-left-radius,border-right-radius等作为解决方法; it's a glitch in the new Android 4+ browser; 这是新Android 4+浏览器的一个小故障; a bug report has been submitted. 已提交错误报告。

Hi I am using this for gradient. 嗨我用它来渐变。 And this works fine in most of the browsers. 这在大多数浏览器中都可以正常工作。

`background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#B4DCFA), to(#FF0000));
-webkit-border-radius:11px;
-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.8);   
/* For WebKit (Safari, Google Chrome etc) */
/* For Mozilla/Gecko (Firefox etc) */
/* For Internet Explorer 5.5 - 7 */
/*-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#B4DCFA,   endColorstr=#FF0000);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#B4DCFA), to(#FF0000));
`

Can you please post the code? 你能发一下代码吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM