0
我想推入logo.png,因此它大约是整个页面的三分之一。当我创建一个较大的填充或边距时,尽管其他代码限制了图像大小,但图像会变大。边距和填充使图像变大
.header {
width: 200px;
height: 60px;
}
.class {
max-width:100%;
max-height:100%;
margin-left: 300px;
}
<body>
<div class="header">
<table>
<tr><td><img src="Logo.png" class="class"></td></tr>
</table>
</div>
</body>
有没有办法将图像进一步水平放置,同时保持图像大小相同?