如果我知道要用图像标签显示的图像的高度和宽度,我应该包括高度和宽度属性,还是只把信息放在CSS中?还是两者都有?
前任.
<img src="profilepic.jpg" height="64" width="64" />
或
<img src="profilepic.jpg" height="64" width="64" style="height: 64px; width: 64px;" />
或
<img src="profilepic.jpg" style="height: 64px; width: 64px;" />