gpt4 book ai didi

css - 如何创建直线边框

转载 作者:行者123 更新时间:2023-12-04 15:08:01 26 4
gpt4 key购买 nike

<分区>

我想创建一个具有红色边框和白色右边框的元素,但 CSS 会创建一个小的对 Angular 线切口:

enter image description here

h1 {
border: 5px solid red;
border-right: 5px solid white;
}

有没有办法让线条走直?

div { 
width: 300px;
height: 100px;
background: #eee;
border-radius: 0px;
border-top: 0;
border-left: 0;
border-right: 0;
border-left: 6px solid #0b0;
border-top: 6px solid #0b0;
border-bottom: 6px solid #0b0;
border-right: 6px solid #fff;
margin: 10px;
}
<div></div>

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