為什么兩個文本框不一樣長?
<form? method="post" action="save.php">
??? 賬戶:
?<input? type="text"? name="用戶名" />
?<br>
?密碼:
??? <input? type="password"? name="密碼" />
<form? method="post" action="save.php">
??? 賬戶:
?<input? type="text"? name="用戶名" />
?<br>
?密碼:
??? <input? type="password"? name="密碼" />
2015-05-28
舉報
2015-09-13
你說如何實現:
看到這段代碼——
<input type="text" name="username" ??id="username" value="" >
這段代碼
告訴了你怎么實現——
ID就是CSS操控的ID,然后通過CSS的方法控制整個表格的展現方法。
學了CSS就知道了
另外一個口訣:
name負責賺錢養家,id負責貌美如花。
請看我的這個答案:
http://www.xianlaiwan.cn/qadetail/91728
2015-05-28
password默認是英文字符;
所以早就了text和password類型長度不一;
可以通過CSS強制輸入框大小和字體來達到統一