文本以某種方式走下樓梯。這是代碼。我看過很多帖子,但顯然沒有人爲我工作。新的代碼,所以會感謝一些幫助。想要在水平線上對齊它。如何對齊文本框HTML,CSS
<div class="text">
<p class="text1">We strive to produce the most highest grade of product
possible. Efficiency is our key, with the support of our team and our fast
response team, we can meet every demand.</p>
<p class="text2">We strive to produce the most highest grade of product
possible. Efficiency is our key, with the support of our team and our fast
response team, we can meet every demand.</p>
<p class="text3">We strive to produce the most highest grade of product
possible. Efficiency is our key, with the support of our team and our fast
response team, we can meet every demand.</p>
</div>
p.text1 {
color: white;
margin-right: 1250px;
margin-left: 40px;
text-align:center;
font-size:20px;
}
p.text2 {
color: white;
margin-right: 600px;
margin-left: 600px;
text-align:center;
font-size:20px;
}
p.text3 {
color: white;
margin-right: 20px;
margin-left: 1200px;
text-align:center;
font-size:20px;
}
它2017年不使用浮動。 –
這就是爲什麼有第二個建議:) – berend
它仍然支持所有瀏覽器仍然在製造商的支持。無論如何,這應該是第一個解決方案,對於支持過時的瀏覽器無法避免的情況,可能會使用浮點數作爲回退。 –