I have two <input>
fields with the HTML attribute size=20
.
This displays fine in Mozilla Firefox; the two text fields have the same size.
Internet Explorer shows one bigger than the other.
Can you help me there?
<td>Login</td><td><input type="text" name="login" size="20"/></td></tr>
<tr><td>Password</td><td><input type="password" name=开发者_JAVA技巧"psw" size="20"/>
I'll tell you what I told somebody else earlier on, you may benefit from a reset.css in your page, as I.E. is a niggly so and so it sometimes looks a lot different than other browsers. This is the reset I would normally use:
http://meyerweb.com/eric/tools/css/reset/
This should make it look a bit better, if that doesn't work, you're going to need a seperate css file for internet explorer.
Set your width in pixels instead like
<br>input.text {background-color:#fffafa; border:dotted 1px #555; width:230px;} <br>
Then you should have solved the problem.
精彩评论