gpt4 book ai didi

前后的 CSS

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

enter image description here HTML :

<h3> <span>What have you missed </span></h3>

CSS:

h3 {color:#c8352e; text-transform:uppercase; font-size:20px; font-weight:900; font-family:arial,'sans-serif'; position:relative; padding-left:22px;}

h3:before, h3:after {position: absolute; content: ""; height: 4px; top: 50%; border-top:1px solid #ccc; border-bottom:1px solid #ccc; }
h3:before {width:15px; left:0;}
h3:after {width:60%;}
h3 span {display: inline-block;padding-right: 10px;}

在 CSS 的帮助下,我需要这些线条效果。 enter image description here

最佳答案

一点点变化可能是精度和生产标签输出

h3 {
color: #c8352e;
text-transform: uppercase;
font-size: 20px;
font-weight: 900;
font-family: arial, "sans-serif";
position: relative;
padding-left: 22px;
}

h3::before,
h3::after {
position: absolute;
content: "";
height: 2px;
top: 50%;
border-top: 4px double #ccc;
border-bottom: 1px solid #ccc;
}

h3::before {
width: 15px;
left: 0;
}

h3::after {
width: 50%;
}

h3 span {
display: inline-block;
padding-right: 10px;
position: relative;
top: 3px;
}
<h3><span>What have you missed </span></h3>

关于前后的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46557386/

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