mozilla 的 css 边框半径

标签 css

在给定页面的边框半径下方,#topnav 不适用于 mozilla 但适用于 google chrome,我使用以下 css 代码:

http://www.kbay.in

#topnav { display:inline-block;float: right; text-align: right; background: #e4f4fe; 
    border:1px solid #e4f4fe;
    border-bottom-color: #e4f4fe;
    border-bottom-width: 4px;
    border-bottom-style: solid; 
    border-radius: 0px 0px 15px 15px; 
    -moz-border-radius-bottomleft: 15px; 
    -moz-border-radius-bottomright: 15px;
    -webkit-border-bottom-right-radius: 15px;
    -webkit-border-bottom-left-radius: 15px;
    margin-right: 90px; margin-top: 0px;
    width:265px;}5E9DC8

最佳答案

新的 Firefox 现在有 border-radius 的无前缀版本。

虽然旧版本是

-moz-border-radius-bottomleft: 15px;

你现在必须接受

border-bottom-left-radius: 15px;

用于新的 Firefox。这就是为什么您总是必须声明官方版本last(这样就不会发生覆盖)。

-moz-border-radius-bottomleft: 15px; 
-moz-border-radius-bottomright: 15px;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
/*last border-radius declaration has to be the standard one*/
border-radius: 0px 0px 15px 15px;

尽管如此,它仍然应该有效。也许您有其他规则可以覆盖此规则? ( Example ) 另外,删除规则 block 后面的 5E9DC8

顺便说一句,如果您只选择速记符号,那么您是安全的,因为它没有符号差异。

关于mozilla 的 css 边框半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11686503/

相关文章:

html - Bootstrap 按钮样式 margin-left :-1px when click outside that area

javascript - 使用 jQuery 使元素扩展到其父元素之外

html - 滚动不会出现或切断底部? (Tumblr 主题)

html - 对齐两个 DIV

css - 使用可滚动 div 剪辑固定/绝对元素

html - 大图像上的小图像悬停 css

css - 单选按钮未正确对齐

javascript - 在 <a> 或 <span> 中使用数据切换 ="tooltip"

html - 如何在鼠标悬停时添加淡入淡出效果

html - 用 2px 高度渲染的 1px 高度的线