用空div设置height方式添加空白,发现ie6下面高度总是比实际设置的高,google了一下,发现以下方法, 集思广益啊:
1.设置div
line-height:2px;
2.设置div
overflow:hidden; height:2px;
3.设置div
font-size:0
4.在div中插入空白图片
转载于:https://blog.51cto.com/forzh/550833
转载于:https://blog.51cto.com/forzh/550833