我想在所有div下面顯示一些消息。但它是在div中顯示的。如何在所有div下面顯示文本
我上傳我的css和html代碼,並捕捉輸出。
.round .shape{
background-size: 560px;
background-position: 0px 2px;
width: 66px;
height: 69px;
background-repeat: no-repeat;
display: inline-block;
}
.img.shape {
border: 1px solid #eee;
}
.img
{
margin-right: 52px;
margin-top: 20px;
}
.shape
{
background-image: url('../images/diamondshape.jpg');
}
<label for="ABC" class="round">
<div class="img shape" ></div>
<span>A</span>
</label>
爲什麼不把文本放在div後面而不是放在裏面? – CoderPi
如果我把外面的div,那麼它會顯示div的右側 – RHapani
你能描繪一下你在油漆中真正想要的東西嗎? – CoderPi