css tab样式中背景图片对不齐

html-css012

css tab样式中背景图片对不齐,第1张

*{margin:0px autopadding:0px}加进样式里面试试

background:url(../images/but2.png)background-position:top right这种你可以这样写background:url(../images/but2.png) right no-repeat更好如果要行居中的话直接在no-repeat后面加个0px 不用去指明父框坐标原点

控制table的样式可以这么写:

.td{border:solid #add9c0 border-width:0px 1px 1px 0px}

.table{border:solid #add9c0 border-width:1px 0px 0px 1px}

这样都分别引入到table 和 td标签控制样式了。

效果如下: