注册 登录
编程论坛 ASP技术论坛

不同的制表方法

anjincheng 发布于 2008-06-16 15:36, 431 次点击
老师们:
    我想在:
<div id="mydiv" style="visibility:hidden;position:absolute;width:100;height:80;border:1 solid;z-index:100"></div>

里加1列、4行的表,怎么弄呀?不能插入<table>...</table>

实现如图的效果:
只有本站会员才能查看附件,请 登录


[[it] 本帖最后由 anjincheng 于 2008-6-16 15:46 编辑 [/it]]
1 回复
#2
hmhz2008-06-16 16:34
程序代码:
<div style="border:1px solid #38713a;width:200px;height:auto;overflow:hidden;">
<div style="border:1px solid #38713a;width:auto;line-height:22px;text-align:center;margin:2px;">1行的内容</div>
<div style="border:1px solid #38713a;width:auto;line-height:22px;padding-left:5px;margin:2px;">2行的内容</div>
<div style="border:1px solid #38713a;width:auto;line-height:22px;padding-left:5px;margin:2px;">3行的内容</div>
<div style="border:1px solid #38713a;width:auto;line-height:22px;padding-left:5px;margin:2px;">4行的内容</div>
</div>
1