gpt4 book ai didi

html - CSS3 Firefox 边框半径剪辑

转载 作者:行者123 更新时间:2023-11-28 08:01:07 25 4
gpt4 key购买 nike

我不确定为什么 Firefox 浏览器会在右上角添加像素边框半径。如果有人在我附上的图片中注意到它。

这只发生在 Firefox 浏览器中。有办法解决吗?

HTML 和 CSS:

    nav {
height:50px;
box-sizing: border-box;
}

nav > ul {
padding:0;
margin:0;
}

nav > ul > li {
display: block;
float: left;
height: 100%;
line-height: 50px;
text-align: center;
width: 144.429px;
background-color: rgb(128, 0, 128);
border-color: rgb(255, 167, 252);
color: rgb(255, 255, 255);
}

nav > ul > li:first-child {
border-bottom-left-radius: 25px;
border-top-left-radius: 25px;
}

nav > ul > li:last-child {
border-bottom-right-radius: 25px;
border-top-right-radius: 25px;
}
<nav class=""id="menusystem">
<ul><li class="active"><span><i class="fa fa-building-o"></i> Home</span></li>
<li><span><i class="fa fa-calendar-o"></i> Book Now</span></li>
<li><span><i class="fa fa-male"></i> Service Prices</span></li>
<li><span><i class="fa fa-th"></i> Product Prices</span></li>
<li><span><i class="fa fa-thumbs-o-up"></i> Our Testimonials</span></li>
<li><span><i class="fa fa-group"></i> Our Events</span></li>
<li><span><i class="fa fa-envelope-o"></i> Contact Us</span></li>
</ul>
</nav>

enter image description here

最佳答案

您可以使用此代码

nav {
height: 50px;
box-sizing: border-box;
margin: 0 auto;
width: 1012px;
}
nav > ul {
padding:0;
margin:0;
}
nav > ul > li {
display: block;
float: left;
height: 100%;
line-height: 50px;
text-align: center;
width: 144.429px;
background-color: rgb(128, 0, 128);
border-color: rgb(255, 167, 252);
color: rgb(255, 255, 255);
}
nav > ul > li:first-child {
border-bottom-left-radius: 25px;
border-top-left-radius: 25px;
}
nav > ul > li:last-child {
border-bottom-right-radius: 25px;
border-top-right-radius: 25px;
}
    <nav class=""id="menusystem">
<ul><li class="active"><span><i class="fa fa-building-o"></i> Home</span></li>
<li><span><i class="fa fa-calendar-o"></i> Book Now</span></li>
<li><span><i class="fa fa-male"></i> Service Prices</span></li>
<li><span><i class="fa fa-th"></i> Product Prices</span></li>
<li><span><i class="fa fa-thumbs-o-up"></i> Our Testimonials</span></li>
<li><span><i class="fa fa-group"></i> Our Events</span></li>
<li><span><i class="fa fa-envelope-o"></i> Contact Us</span></li>
</ul>
</nav>

关于html - CSS3 Firefox 边框半径剪辑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29753227/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com