0
文字正在變形我的格。文本正在變形我的格
這裏是我有:
<div class="BigOne" ></div>
<div class="leftOne" ></div>
<div class="rightOne">This text is deforming the "leftOne"</div>
</div>
而CSS:
.leftOne {
float: left;
width: 100%;
height: 100%;
border: 3px dashed #444;
border-radius: 7px;
box-sizing: border-box;
}
.rightOne {
float: left;
width: 100%;
height: 100%;
border: 3px dashed #444;
border-radius: 7px;
box-sizing: border-box;
}
我怎樣才能precent右div的文字,例如,從變形左格?
謝謝
我不明白。 '寬度:100%;'div是整個窗口的寬度,一個在另一個之上。請解釋更多,或者您可能忘記包含一些相關的其他html。 –
nop,div取決於與「BigOne」和它的每個屏幕的不同,在這種情況下,我不能在px中使用,因爲它不同於eacch scrren的分辨率 –
請解釋您以何種方式定義「變形」。 – justinw