段落“
”未应用填充
以下三段代码的行为完全相同:
<p {padding: 0 15 0 15}> A paragraph of text here... </p>
<p> A paragraph of text here... </p>
<p style="padding: 0 15 0 15"> A paragraph of text here... </p>
如何使段落两边缩进? (我尝试了 15px 而不是 15(编辑 - 但仅在前两个),我还尝试用逗号分隔数字,就像我在 Google 上找到的示例一样。)
上面的代码位于正文中的 div 中,没有涉及其他div或table等。
div 已定义:
<div style="background-color: white; color: black; overflow:auto">
感谢您的帮助。
The following three pieces of code behave exactly the same:
<p {padding: 0 15 0 15}> A paragraph of text here... </p>
<p> A paragraph of text here... </p>
<p style="padding: 0 15 0 15"> A paragraph of text here... </p>
How do I get the paragraph indented on both sides? (I tried 15px instead of 15 (EDIT - but only on the first two), I also tried separating the numbers with commas, like an example I found on Google.)
The above code is in a div which is in the body, no other divs or tables, etc. are involved.
The div is defined:
<div style="background-color: white; color: black; overflow:auto">
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
15? 15 什么?您是否考虑过使用单位?
15? 15 what? Have you considered using units?
更改:
至:
Change:
to:
也许您之前有这样的行:
This CSS disable the use of padding。
Maybe you have a previous line like this:
This CSS disable the use of padding.