1
.container {
display: flex;
justify-content: center;
border-bottom-width: 2px;
border-bottom-color: gray;
border-bottom-style: solid;
}
.label {
border-bottom-width: 2px;
border-bottom-color: orange;
border-bottom-style: solid;
}
<div class=container>
<div class=label>
Hello
</div>
</div>
私のHTMLとCSSのコードですdivdivの灰色の枠線を完全にオーバーレイします。ここにイラストがあります。
私は、調整されたパディングとマージンを試みたが、明らかに、変化は同様に、コンテナのサイズを変更します学位論文ので、私は私の望ましい結果を達成することはできません。
cssを使用して実現することはできますか?
も、この属性が存在して知りませんでした!ありがとう!システムが許せば受け入れます。 –
@AnthonyKongようこそ) –