我怎样才能中心对齐背景图像的td或li有不同的宽度(从25px到30px)。我尝试了一切,但他们不会对齐。对齐背景精灵图像
这是我使用的是什么:
.cIcons-26 {
float: left;
position:relative;
height:26px;
background:url("../img/sprites/icons/png") top left no-repeat;
}
.theIcon { background-position: -93px -1px; }
'.cIcons-26'是一个'td'? – 2014-10-11 02:33:56