选择的colspan在表格表中不起作用
即时消息,我可以将下拉列表选择我设置为Colspan 2,并期望其宽度涵盖下面的2个输入字段,但它不起作用 请有人告诉我出了什么问题
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<section>
<div class="ship">
<table>
<form action="">
<tr colspan="2">
<td>
<select name="" id="">
<option value="" disabled selected hidden>
Select Your Country
</option>
<option value="Vietnam">Vietnam</option>
<option value="India">India</option>
<option value="Japan">Japan</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="text" placeholder="State/Country" />
</td>
<td>
<input type="text" placeholder="Postcode/Zip" />
</td>
</tr>
</form>
</table>
</div>
<div class="total"></div>
</section>
</body>
</html>
im creating a form with dropdown select i set to colspan 2 and expect its width to cover the 2 input field below but it didnt work
please someone show me what went wrong
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<section>
<div class="ship">
<table>
<form action="">
<tr colspan="2">
<td>
<select name="" id="">
<option value="" disabled selected hidden>
Select Your Country
</option>
<option value="Vietnam">Vietnam</option>
<option value="India">India</option>
<option value="Japan">Japan</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="text" placeholder="State/Country" />
</td>
<td>
<input type="text" placeholder="Postcode/Zip" />
</td>
</tr>
</form>
</table>
</div>
<div class="total"></div>
</section>
</body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该设置
&lt; td colspan =“ 2”&gt;
and&lt; select name =“” id =“” style =“ width:100%”;&gt;
You should set
<td colspan="2">
and<select name="" id="" style="width: 100%";>