html - 当 chrome 15 中设置了边框半径时边框不出现

标签 html google-chrome css rounded-corners

我有以下代码: HTML:

<div id="login" class="transparent-div login_leaf_class">

<input class="pointer login_fields_button" id="submit_button" type="submit" title="SUBMIT" value="SUBMIT"/>
</div>

CSS:

.login_leaf_class
{
    border:solid #000 !important;
     border-top-left-radius:70% 60% ;
    border-bottom-right-radius:70% 60%;
    -moz-border-top-left-radius:70% 50%;
    -moz-border-bottom-right-radius:70% 50%;
}
div#login
{
    position:relative;
    padding:10px;
    overflow:hidden;
    margin-top:10%;
    margin-right:5%;
    color:#0000;
    float:right;
    width:300px;
    height:200px;
    font-weight:900;
    background:#FFB3FF;
    background:rgba(255,179,255,0.8);
}
.login_fields_button
{
    float:right;
    display:inline;
    background:#003300;
    color:#FFF;
    font-weight:900;
    padding:4px;
    width:100px;
    height:50px;
    border-radius:0 !important;
     border-top-left-radius:99.9% 100% !important;
    border-bottom-right-radius:99.9% 100% !important;
    -moz-border-top-left-radius:99.9% 100% !important;
    -moz-border-bottom-right-radius:99.9% 100% !important;
    border:solid #fff !important;
}

问题是,边框在 FireFox 中似乎是正确的。只要我也有 chrome14,一切都很好,但最近当我更新到 chrome 15 时,边框只出现在 2 个 Angular 上。 请参阅以下屏幕截图: This is normal scenario This is how it looks in chrome 15 我应该在这里做什么??这是一个错误?? http://jsfiddle.net/uMYfp/1/

最佳答案

如果你给它一个 4px 或更大的 border-radius,它就可以工作。

Demo

此外,您不需要那些 !important,这是一种不好的做法。

关于html - 当 chrome 15 中设置了边框半径时边框不出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8352258/

相关文章:

html - 水平居中溢出图像

html - 如何制作两列 SVG 和文本,文本始终位于 SVG 的右侧?

html - 如何居中对齐图像链接并使其仅在图像而不是溢出区域上可点击?

html - 如何修复背景图像?

javascript - Chrome 和 jquery css 无法正常工作

html - 使用绝对位置和百分比垂直居中子 div 时出现错误

javascript - 在 Owl Carousel 中设置轮播高度

html - 在视频 html/css 上应用 png 蒙版

html - 当 td 位于位置 :relative 时,表格边框未正确呈现

javascript - 如何根据条件改变背景颜色