gpt4 book ai didi

css border-radius 未应用

转载 作者:太空宇宙 更新时间:2023-11-03 21:59:11 25 4
gpt4 key购买 nike

CSS 边框半径不适用于导航包装器。有什么想法吗?

Fiddle

代码:

HTML:

<div class="navigation">
<div><a href="">Home</a></div>
<div><a href="">Products</a></div>
<div><a href="">Services</a></div>
<div><a href="">Support</a></div>
<div><a href="">Contact</a></div>
</div>
<div style="clear:both;"></div>

CSS:

.navigation {   
position:relative;
float:left;

overflow:auto;

-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}

.navigation div {
position:relative;
float:left;

background: #484745;

height:53px;
line-height: 53px;
}

最佳答案

background-color 赋予 .navigation。像这样写:

.navigation {    
background: #484745;
}

检查这个:jsFiddle

关于css border-radius 未应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11738852/

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