js如何设置两个input之间的距离
1、新建一个html文件,命名为test.html,用于讲解js如何设置两个input之间的距离。

3、在test.html文件内,设置其中一个input标签的id属性为sone。

5、在js标签内,通过id获得input对象,利用marginTop属性设置两个input之间的距离为50px。

1、新建一个html文件,命名为test.html,用于讲解js如何设置两个input之间的距离。
3、在test.html文件内,设置其中一个input标签的id属性为sone。
5、在js标签内,通过id获得input对象,利用marginTop属性设置两个input之间的距离为50px。