gpt4 book ai didi

html - 删除最后一个 li 行边框

转载 作者:太空宇宙 更新时间:2023-11-04 01:55:25 25 4
gpt4 key购买 nike

我需要删除最后 li 行的边框底部。就像下面的图片示例 enter image description here

提前谢谢你:)

jsfiddle.net/foLacgg3/1

最佳答案

如果你不想重写代码,你可以使用伪元素,并给它你的页面背景(这只会隐藏 ul 中最后一个元素的边框)

ul {
list-style: none;
padding-left: 0;
display: block;
position: relative;
overflow: hidden;
}
ul:after{
content: '';
position: absolute;
bottom: 0;
left: 0;
height: 2px;
background: #F3F5F6;
/*(page background)*/
width: 100%;
}

https://jsfiddle.net/foLacgg3/2/

关于html - 删除最后一个 li 行边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42732855/

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