table表格放入图片时变形
1.首先,可以尝试给表格的行及单元格加上宽高
.table11 tr:nth-of-type(odd){//选中奇数行
height: 47%;
width: 100%;
position: absolute;
}
.table11 tr:nth-of-type(even){//选中偶数行
height: 3%;
width: 100%;
position: absolute;
}
2.如果表格固定宽高还是没有用的话可以试试表格的table-layout: fixed属性,但遇到合并单元格时会遇到问题。
.table11{
height: 100%;
width: 100%;
position: absolute;
table-layout: fixed;
}
3.这都定不住了,那干脆点,直接用定位啦,强行定住。
直接使用定位,虽然这样比较low,嗯,顶用就行。
附加个在table表格里添加easyui分页的方法吧。
<td colspan="2"style=“height: 100%;width: 100%;position: absolute;”>
这东西高度还不能给太高,不然会出来一个框框,反正我是没给去掉,以后可能会有方法吧。
新人第一次写,还有很多不足,连代码样式都没调好,要是有啥问题可以随便提,反正我还有好多要学习。