html如何设置距离左边多少距离

来源:百度知道 编辑:UC知道 时间:2024/06/25 23:34:16
<td align="left">购电度数:</td>
<td width="2" align="left"><input type="text" name="elecValue" id="elecValue"onkeyup="isInteger(this);" onkeydown="isInteger(this);" />
如何设置距离左边多少?
就是让他距离左边多宽啊 比如距离左边哟2个空格啥的

你指的是单元格距离左边的宽度还是整个页面呢?

如果是单元格的话:
<td width="设定你想要的宽度"> </td>
<td align="left">购电度数:</td>
<td width="2" align="left"><input type="text" name="elecValue" id="elecValue"onkeyup="isInteger(this);" onkeydown="isInteger(this);" />

如果是整个页面:是在 body 标签中设定的,<body leftmargin=宽度值>

不懂什么意思啊~~~~~~