好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

div整体居中其内容不居中的示例代码


复制代码

代码如下:


<BODY bgcolor=" # 4985 f2 " style="text-align: center ;">
<DIV style="width:800px;overflow:hidden;background:#FFF ;m arg in:0 auto;text-align:left;padding:0 2em;text -i ndent:2em;">


效果:文字 距离 边框2个字 宽 度,首行缩进2个字

总结

以上是 为你收集整理的 div整体居中其内容不居中的示例代码 全部内容,希望文章能够帮你解决 div整体居中其内容不居中的示例代码 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于div整体居中其内容不居中的示例代码的详细内容...

  阅读:21次