代码如下,效果见附件,貌似只有最古老的IE6是一样宽的。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
<style type="text/css">.form_field{width:250px;border:1px solid black;}</style>
</head>
<body>
<form name="fm" id="fm" onsubmit="javascript: return false;">
<input type="text" class="form_field" name="text_field" id="text_field" value="text" /><br />
<input type="password" class="form_field" name="password_field" id="password_field" value="password" /><br />
<input type="file" class="form_field" name="file_field" id="file_field" /><br />
<input type="submit" class="form_field" name="submit_field" id="submit_field" value="submit" /><br />
<input type="reset" class="form_field" name="reset_field" id="reset_field" value="reset" /><br />
<select class="form_field" name="select_field" id="select_field"><option value="1">Option 1</option></select><br />
<button class="form_field" name="button_field" id="button_field">button</button><br />
<textarea class="form_field" name="textarea_field" id="textarea_field">textarea</textarea>
</form>
</body>
</html>
--
FROM 136.182.2.*




