table内的文字中间留空 html

来源:百度知道 编辑:UC知道 时间:2024/06/21 08:35:15
用dreamweaver制网页时,在table里面写了文字,比如里面写bb gg,在bb和gg中间要留好多空格,请问html点写。
如:<table width="520" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="center"> <a href="index.html" class="style1 style3">bb</a> <a href="http://www.baidu.com" class="style1 style3">gg</a></div></td>
</tr>
</table>
我想在在bb和gg中间要留好多空格,请问怎么加?谢谢。

空格用转义字符代替.在代码书写窗口.
一个空格为 nbsp; (加分号)

在代码窗口可以写成bbnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;gg

空格用  
显示出来就是空格

<table width="520" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="center"> <a href="index.html" class="style1 style3">bb</a>   <a href="http://www.baidu.com" class="style1 style3">gg</a></div></td>
</tr>
</table>

还可以用css,不过比用 要复杂一点点