我正在一个网站上工作,我遇到了一个问题,即在Firefox上然后在Opera上呈现元素的边界不同。
如果有任何关于如何解决这个问题的建议,我将感激不尽。
Picture (Opera on the left, Firefox on the right)
编辑: CodePen
HTML:
<div class="red-bordered-top-bar"></div>
<div class="red-bordered-bar" style="height: 256px;"></div>
<div class="red-bordered-bottom-bar"></div>
CSS:
.red-bordered-bottom-bar {
position: relative;
border-width: 0px 0px 15px;
border-color: transparent;
border-style: solid;
border-image: url("../Resources/primary_bottom.svg") 15 15 15 15 round round;
background-color: #33393E;
}
.red-bordered-bar {
position: relative;
background-color: #FE634A;
}
.red-bordered-top-bar {
position: relative;
border-width: 15px 0px 0px;
border-style: solid;
border-color: transparent;
border-image: url("../Resources/primary_top.svg") 15 15 15 15 round round;
background-color: #33393E;
}
答案 0 :(得分:0)
尝试更改15 15 15 15边框图像切片值:
//top
-moz-border-image: url("https://dl.dropboxusercontent.com/u/35123963/primary_top.svg") 11 15 15 15 round round !important;
//bottom
-moz-border-image: url("https://dl.dropboxusercontent.com/u/35123963/primary_bottom.svg") 15 15 11 15 round round !important;
-moz for mozilla browser