如何对齐文本P标记? [英] How Do I Align Text P Tag?
本文介绍了如何对齐文本P标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我尝试对齐p标签内的文字我使用过此代码
Hi
I trying to align a text inside the p tag i have used this code
<p align="left">Text</p>
但它的对齐完全离开了。我需要一些空间留下文字
请为此任何代码
Thanku
but its aligning completely left . i need some space to left then text
please any code for this
Thanku
推荐答案
试试这个:
Try this:
<p style="text-align: left; margin-left:20px;">Text</p>
阅读更多: http://www.w3schools.com/css/css_boxmodel.asp [ ^ ]
你可以试试这个:
You can try this:
<p align="left" style="padding-left: 20px;">Text</p>
如果不行,请告诉我具体要求。
If not work then tell me the exact requirement.
这篇关于如何对齐文本P标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文