[英]visiblity:hidden of table-cell hides background-color of parent table-row
[英]Internet Explorer: Bad visualization of CSS Table (table-row, table-cell)
我使用显示表,表行和表单元格属性制作了CSS表结构。
每个p具有table-row属性,它们跳行OK。 但是,当我在同一个<p>
放置2个或更多元素(输入或选择)时,我希望这些元素是内联的,但在IE(最新版本)中,尽管属于相同的<p>
有解决此问题的解决方案吗? 完美的可视化效果就像Firefox,所有元素都对齐。
<p><label>Name (first, second): </label><input type="text" /><input type="text" /></p>
示例: http : //jsfiddle.net/HY62t/
在labels
添加vertical-align: top
(和padding-top
)或middle
。
如果在单独的行上有两个输入,则zou可以使用例如fieldset input {float: left;}
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.