阅读背景:

Input输入框的宽度设置为100%会发生什么?

来源:互联网 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table border="1" width="100%">
<tr>
<td width="60%">Input-Box-1</td>
<td width="40%"><input type="input" value=""  /></td>
</tr>
</table>
<table border="1" width="60%">
<tr>
<td width="60%">Input-Box-2</td>
<td width="40%"><input type="input" value="Input-Box-2Input-Box-2Input-Box-2Input-Box-2Input-Box-2Input-Box-2" style="width:100%" /></td>
</tr>
</table>
</body>
</html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 St



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: