js怎样定义input的内边距

2024-10-12 16:31:14

1、新建一个html文件,命名为test.html,用于讲解js怎样定义input的内边距。

js怎样定义input的内边距

3、在test.html文件内,设置input标签的id属性为wtwo。

js怎样定义input的内边距

5、在js标签内,通过id获得input对象,再使用padding属性设置input的内边距为20px。

js怎样定义input的内边距
猜你喜欢