Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 div 中写一些内容时,它显示为
但我希望它从右边以相等的边距显示
我尝试了边距、填充和所有解决方案,但没有任何效果。那么如何实现这一点以使网页看起来不错?
你有没有尝试过:
text-align: justify
HTML: <p class="info"> This is a long piece of text that doesn't make sense yet you are still reading it up to this point and even up to now and more. </p> CSS: p.info { text-align: justify }