如何在firefox中强制表格宽度100%到父表单元素

时间:2013-04-24 14:19:20

标签: html css firefox

表单包含表格元素,其widt为100%:

<form class="browse-addtocart-form" method="post">
  <table class="productTable ui-corner-all" width="100%" cellspacing="0" cellpadding="0" border="0">
 ....

在最新的FireFox中,表格宽度太大。左侧是形式之外。 在IE10和Chrome表中,宽度是100%来形成。

在FireFox中,表格宽度太大,渲染比灰色区域宽。 在Chrome和IE10页面中呈现正确。

如何在fireFox中渲染适当的宽度?

使用jquery,jquery-ui。

1 个答案:

答案 0 :(得分:-1)

您还可以将样式应用于表单本身:

clear: both;