gpt4 book ai didi

html - 框阴影不四舍五入

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

所以我在这个网站上工作 - http://www.roseandlilyprinting.com/

如果你去 port-folio 部分,你会看到盒子阴影没有四舍五入以适应边界半径,这使得盒子阴影破坏了感觉

这是 CSS 片段,#navBarPort 是带有框阴影和#allImages 的片段

感谢您的帮助

#navBarPort {
background-color: #CCCCCC;
display: block;
height: 80px;
margin: 55px auto;
position: relative;
text-align:center;
font-size: 1.2em;
border-radius: 10px 10px 10px 10px;
box-shadow: 1px 1px 1px #999,
2px 2px 2px #999,
3px 3px 3px #999,
4px 4px 4px #999,
5px 5px 5px #999,
6px 6px 6px #999,
7px 6px 7px #999,
8px 6px 8px #999,
9px 6px 9px #999;
}


#navBarPort a{
color: #FFFFFF;
display: inline-block;
height: 39px;
line-height: 37px;
padding: 0 15px;
text-shadow:1px 1px 1px #315218;
text-decoration: none;
}

#navBarPort a:hover{
text-decoration:none;
color: #27A5BA;
}

#navBarPort a.active{
color: #27A5BA;
}


/*----------------------------
Content area
-----------------------------*/
#images {
height: 460px;
display: inline-block;
text-align: center;
padding-left: 20px;
overflow: hidden;

}


#allImages{
display:block;
height: 490px;
margin:0 auto;
padding: 10px;
border-radius: 10px 10px 10px 10px;
box-shadow: 10px -10px 5px #999;
-moz-box-shadow: 10px -10px 5px #999;
-webkit-box-shadow: 10px -10px 5px #999;
-o-box-shadow: 10px -10px 5px #999;
background-color: #CCCCCC;
}

#allImages li{

float: left;
height: 96px;
list-style: none outside none;
margin: 6px;
position: relative;
width: 115px;
overflow: hidden;
-moz-box-shadow: 0 0 5px #000;
-webkit-box-shadow: 0 0 5px #000;
box-shadow: 0 0 5px #000;
}

#allImages ul li img{
cursor: pointer;
width: 100%;
height: 100%;
}

#allImages ul{
overflow:auto;
display: inline-block;
text-align: center;
}

#allImages ul.hidden{
display:none;
}

最佳答案

由于类 flex-viewport 的 div 元素上的 overflow: hidden 属性,您的框阴影被切断了。

请注意,框阴影不一定位于元素的边界框内,因此可被视为溢出。

请注意,删除该属性会干扰 flex slider ,但可以找到解决方法(例如,在父元素上设置 overflow: hidden)。

关于html - 框阴影不四舍五入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31214165/

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