gpt4 book ai didi

html - 如何在 CSS 中创建垂直删除线?

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

我可以使用表格和背景图片创建此效果,但我真的很想使用 CSS,拜托了。是否可以?

演示:http://jsfiddle.net/2ARfR/

最佳答案

试试这个 jsbin:http://jsbin.com/arisuy/5/edit

相关的 CSS

p {
width: 50px;
text-align: center;
position : relative;
}

p:before {
position: absolute;
content : "";
left : 50%;
top : 0;
height: 100%;
width : 0;
border-right: 1px #666 solid;

}

关于html - 如何在 CSS 中创建垂直删除线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12298937/

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