」;2、在style標籤對中,設定「input{ width:寬度值;}」語句即可。"/> 」;2、在style標籤對中,設定「input{ width:寬度值;}」語句即可。">

首頁  >  文章  >  web前端  >  css怎麼修改input框的長度

css怎麼修改input框的長度

青灯夜游
青灯夜游原創
2021-11-10 17:28:0010603瀏覽

css修改input框長度的方法:1.在input標籤中利用style屬性設定width樣式,語法「」;2、在style標籤對中,設定「input{width:寬度值;}」語句即可。

css怎麼修改input框的長度

本教學操作環境:windows7系統、CSS3&&HTML5版、Dell G3電腦。

css修改input框長度的方法

#方法1:

##就利用style屬性給input標籤新增width樣式。


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

css怎麼修改input框的長度

##

<!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框的長度

r:rrreee

######### (學習影片分享:###css影片教學###)###

以上是css怎麼修改input框的長度的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn