文本以某种方式走下楼梯。这是代码。我看过很多帖子,但显然没有人为我工作。新的代码,所以会感谢一些帮助。想要在水平线上对齐它。如何对齐文本框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
它仍然支持所有浏览器仍然在制造商的支持。无论如何,这应该是第一个解决方案,对于支持过时的浏览器无法避免的情况,可能会使用浮点数作为回退。 –