Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经table-layout: fixed为列设置了 、 width 和 padding ,但是每 22px 的实际宽度比它应该的要高。什么会导致这种情况?
table-layout: fixed
您已将表格宽度设置为 1000 像素,单元格宽度也设置为像素,因此它们加起来不会达到 1000 像素。显然,浏览器必须使单元格更宽或忽略整个表格上的设置。作为作者,您最好做出这样的选择,例如通过简单地删除表格上的宽度设置。
我搜索了几个例子,仍然没有得到。我正在将一个 GOOD 对象列表从控制器传递到 jsp 页面。试图循环列表对象,但它只重复显示一个元素。我应该用豆子吗?如果是,您能否为我的案例提供更具体的示例。
<c:if test="${not empty listGood}"> <c:forEach var="ob"