谁帮我把一句表格转换成DIV

来源:百度知道 编辑:UC知道 时间:2024/05/31 20:59:24
<TABLE cellSpacing=0 cellPadding=0 width=980 align=center border=0>
这个转换成DIV应该如何写

<div style='border:0px;padding:0px;text-align:center;width:980px;'></div>

这个是简单的转换, 但是具体要根据实际的代码来控制的..

因为 table标签的 cellpadding, cellspacing 和 border 都是用来控制td标签的, 因此, 还需要根据实际的代码来对td样式进行控制

老大..table与div是无关的..
这样吧..
<div style="width=980;..."></div>
我想我要跟你说的是..
align=center在div里面是不起作用的..
那要用auto或者textalign
border=0也没用..本来就没边框
你最好是学学DIV吧

最好和css一起处理。

<body style="text-align: center">
<form id="form1" runat="server">
<div>
<div style="text-align: center">
<div style="text-align: center">
: <table style="width: 324px; height: 119px">
<tr>
<td align="center" style="width: 100px; background-color#99ccff; text-align: center;" val