我很困惑为什么我的文本不缩进。HTML中的文本缩进
http://69.143.164.37/csa-consulting/clients.php
非常左下角的“教育规范”被包装风格这样的p内:
<p style="text-indent: 3em">Educational Specifications</p>
为什么不是工作?
谢谢!
我很困惑为什么我的文本不缩进。HTML中的文本缩进
http://69.143.164.37/csa-consulting/clients.php
非常左下角的“教育规范”被包装风格这样的p内:
<p style="text-indent: 3em">Educational Specifications</p>
为什么不是工作?
谢谢!
改为使用padding-left
。
style="padding-left: 3em;"
因为style.css中的线150指定显示:内联的内部内容<p>
元素
#content p {
display: inline;
margin: 0;
padding: 0;
}
只是删除该规则
的text-indent属性不起作用上内联元素。试试:
<p style="display: block; text-indent: 3em;">Educational Specifications</p>
这应该适合你。
因为p元素在这里是内联的。你可以在你的style.css文件中找到
#content p { display:inline }
。
但是,缩进属性只对块容器起作用。