如何調整文本輸入框的大小
<!DOCTYPE html>
<html>
?<head>
? <title>瀏覽器對象</title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> ??
? <style type="text/css">
? ? inpput{
? ? ? ?width:100px; ?
? ? }
? ??
? </style>
?</head>
?<body>
? <form>
? <input type="text" name="a" value="nihao">
? </form>
</body>
</html>
我這么寫,可是瀏覽器效果沒有任何變化
2016-08-30
<style type="text/css">
//將行級標簽轉換為塊級標簽,就可以調整大小
????input{ display:block; width:自己設置; height:自己設置;?}
</style>
<input type = "text" name="a" value="nihao"/>
2016-08-30
要先讓input元素塊化
inpput{
display:block;
width:100px;
}