我有点困惑。我尝试使用 CSS 调整图像大小。在 Safari 和 Chrome 中,图像会调整大小,而在 IE 和 Firefox 中,它会保持原始大小但会裁剪。我需要更改什么才能在 FF 和 IE 中调整其大小?CSS 如下所示:
body {
background-color:black;
width: 100%;
height: 100%;
}
#image1 {
background-image: url(img/myimage.png);
background-size: 100% 100%;
position: absolute;
width: 532px;
height: 250px;
top: 100px;
left: 100px;
}
和身体:
<body> <div id='image1'></div> </body>