需要准备的材料分别有:电脑、浏览器、html编辑器。
1、首先,打开html编辑器,新建html文件,例如:index.html。
2、在index.html中的<style>标签中,输入css代码:.sub{margin-top: 30px}。
3、浏览器运行index.html页面,此时3个div子子容器的垂直间距被统一设置为了30px。
有两种方法一\用CSS实现如下:
button{padding-left:10px}
二\用&*nbsp?实现如下:
<td>
<button type="submit" name="submit" >提交</button>
?&*nbsp&*nbsp&*nbsp&*nbsp
<button type="reset" name="reset" >重置</button>
<td/>
注:把*去掉