我試圖在div標籤後面放置邊框,但是線條顯示在文字周圍,而不是在圖像下方在左邊,我如何解決它?將圖像和文字放置在HTML下但邊框在文字下時圖像太大
<html>
<head>
<title> This is an demo </title>
<style>
.left { float: left; }
.content {
clear: both;
border-color: #666666;
border-bottom: 3px solid;
}
</style>
</head>
<body>
<div class="content">
<img class="left" src="61add42atw1dnf1k4h4qzj.jpg" />
<p> This is a not so long paragraph</p>
</div>
</body>
</html>
我怎樣才能把邊境低一點?
謝謝!
什麼是你的CSS? – Helen
@海倫這是一個最小的情況下,只有部分住在
– daisy