您的位置 首页 技术专栏

css怎么修改input框的长度

24小时课堂在线收录css怎么修改input框的长度,css修改input框长度的方法:1、在input标签中利用style属性设置width样式,语法“<input style="width:…感谢您关注css怎么修改input框的长度。

css修改input框长度的方法:1、在input标签中利用style属性设置width样式,语法“<input style=”width: 宽度值;” />”;2、在style标签对中,设置“input{width:宽度值;}”语句即可。

本教程操作环境:windows7系统、CSS3&&HTML5版、Dell G3电脑。

css修改input框长度的方法

方法1:

利用style属性给input标签添加 width样式。

<input type=”text” /><br /><br /><input type=”text” style=”width: 300px” />

css怎么修改input框的长度

方法2:

<!DOCTYPE html><html><head><style>.input {width: 100px;}</style></head><body><input type=”text” /><br /><br /><input type=”text” class=”input” /></body></html>

以上就是css怎么修改input框的长度的详细内容,更多请关注24小时课堂在线其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/97825.html

为您推荐

返回顶部