我正在尝试设置图像 src 属性的行高样式,但失败了。好像不能用css控制line-height?
img {
font-size: 10px;
color: red;
line-height:10px;
}
请看一下 jsfiddle 上的这个例子: http://jsfiddle.net/nerdess/qvLw2/2/
最佳答案
line-height 不影响图像你可以寻找不同的解决方法阅读这个: http://api.jquery.com/error/ - 使用 jquery
关于html - 行高 img alt 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13682566/