好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css怎么修改input框的长度

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

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

css修改input框长度的方法

方法1:

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

<input ty PE ="text" />< br  /><br />
<input type="text" style="width: 300px" />

方法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视频教程)

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

总结

以上是 为你收集整理的 css怎么修改input框的长度 全部内容,希望文章能够帮你解决 css怎么修改input框的长度 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于css怎么修改input框的长度的详细内容...

  阅读:31次