如何使DIV中的内容居中
来源:百度知道 编辑:UC知道 时间:2024/05/31 14:37:09
比如<div><table/></div> 只要让DIV中的TABLE水平居中 上间距20 就OK
CSS在DIV中设置,DIV的大小不一定, TABLE不做任何设置
谢谢各位啦 OK了多加分
<div id="aaaaaaaaa1" class="x-panel x-panel-noborder" style="width: 598px; left: 10px; top: 10px;">
<table width="500" height="1000" border="1">
</table>
<div id="ext-gen22" class="x-panel-bwrap">
<div id="ext-gen23" class="x-panel-body x-panel-body-noheader x-panel-body-noborder" style="width: 598px; height: 283px;"/>
</div>
</div>
现在就想让aaaaaaaaa1 中显示的内容水平居中,其实可见的只有TABLE
padding-left:10px;也可以用 但是text-align:center;无效 大哥还有其他办法么?
CSS在DIV中设置,DIV的大小不一定, TABLE不做任何设置
谢谢各位啦 OK了多加分
<div id="aaaaaaaaa1" class="x-panel x-panel-noborder" style="width: 598px; left: 10px; top: 10px;">
<table width="500" height="1000" border="1">
</table>
<div id="ext-gen22" class="x-panel-bwrap">
<div id="ext-gen23" class="x-panel-body x-panel-body-noheader x-panel-body-noborder" style="width: 598px; height: 283px;"/>
</div>
</div>
现在就想让aaaaaaaaa1 中显示的内容水平居中,其实可见的只有TABLE
padding-left:10px;也可以用 但是text-align:center;无效 大哥还有其他办法么?
1、首先在电脑端找到代码文档,打开要修改的html结构的文档。
2、然后准备写一个div用来放内容,可以给div设置边框。
如何使DIV中的内容居中 如何使UL中的内容居中 如何使word中的内容在垂向上居中 怎样让div中的li居中 怎样使word表格中的内容居中? 如何让这个div居中显示? 如何让图片居中?用DIV+CSS 请问DIV与DIV如何实现垂直居中对齐? 如何让DIV层在网页中居中显示 DIV表格居中问题