设置table 行高无效
table表格行高受CSS影响,无法改变,最小始终是20,现在需要设置成1,不能更改CSS,其他很多地方还要用,
<div id=demo style="overflow:hidden;height:350px;width:200px;">
<div id=demo1 >
<table cellspacing="0" cellpadding="0 border="1" style="font-size:1px;height:1px;line-height:1px;overflow:hidden;word-wrap:break-word;align:right;">
<tr>
<td><a href="#" onmouseover="MouseOver(this)"><img src="/images/j1.gif" border="0"></a></td>
</tr>
<tr>
<td style="bgcolor:#cccccc;line-height:1px;height:1px;"></td>
</tr>
</table>
</div>
请指教。
<div id=demo style="overflow:hidden;height:350px;width:200px;">
<div id=demo1 >
<table cellspacing="0" cellpadding="0 border="1" style="font-size:1px;height:1px;line-height:1px;overflow:hidden;word-wrap:break-word;align:right;">
<tr>
<td><a href="#" onmouseover="MouseOver(this)"><img src="/images/j1.gif" border="0"></a></td>
</tr>
<tr>
<td style="bgcolor:#cccccc;line-height:1px;height:1px;"></td>
</tr>
</table>
</div>
请指教。
...全文
相关推荐
表格设置table-layout:fixed后对单元格宽度设置无效
在对设置表格设置table-layer:fixed样式后,发现表格中有一行合并过,其它没有合并的行的列宽会平均化,对列宽的设置会失效,下面有详细的解决方法,大家可以学习学习
html 表格单元格的宽度和高度的设置方法
做网页的时候,经常会碰到表格宽度对不齐的问题,遇到这种问题怎么处理呢?下面小编给大家介绍下html 表格单元格的宽度和高度的设置方法,一起看看吧
css如何固定table第一行CSS面试知识点总结三.docx
css如何固定table第一行CSS面试知识点总结三.docx
layui 设置table 行的高度方法
今天小编就为大家分享一篇layui 设置table 行的高度方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
Element Table的row-class-name无效与动态高亮显示选中行背景色
主要介绍了Element Table的row-class-name无效与动态高亮显示选中行背景色,本文详细的介绍了解决方案,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧


