0

我想稍微移动鼠标上的图像,但它不起作用。
图像位于表格单元格内。单元格没有间距,没有填充,没有定义的高度
表格外的图像 - 效果很好。

#img01 { 
    width:25px; 
    height:25px; 
    margin:9px 10px 0px 0px;
    cursor:pointer;
}

#img01:hover {
    margin-top:4px;
}
4

1 回答 1

2

图像默认是内联的。尝试添加:

display: block

到图像。

于 2012-08-15T19:20:58.880 回答