可否請您告訴我爲什麼P標籤沒有佔用整行高度?事實上,我在我的行中有p標籤,其中文本是「P」只有背景顏色淺藍色。它不佔用整行高度如圖所示? 我會嘗試解釋更多的換句話說。爲什麼P標籤不佔用整行高度?
- 我試圖做一個行作爲圖像顯示。它有像「P」文字「左」的一個。它沒有采取行整體高度在圖像顯示
- 我有一個圓在右邊是「650」裏面有一些文字,它不在中心顯示爲什麼?
plunker
http://plnkr.co/edit/ilmNaeyjFZCcSnb2PWcO?p=preview
.bg {
background: lightgray;
position: relative;
}
.ptag {
position: absolute;
margin-left: -7%;
width: 7%;
border: 1px solid red;
height: 100%;
background: lightblue;
color: white;
}
.circle{
width: 50px;
height: 50px;
float: right;
border-radius: 100%;
background: green;
margin-top: -7%;
color:black!important;
}
請形象。「P」爲背景色的藍色不採取充分的高度,在圖像 – user944513
更正的鏈接中給出。 –
正確90%。我有一個問題是否有反應?意思是它可以在所有屏幕分辨率上工作..其次「P」在你的演示中有一定的餘量,但在法師中沒有左邊距..我們可以從左邊的零邊距 – user944513