更新时间:2021-10-13 21:45:32
就我个人而言,我会将它作为 div 中的背景图片,其 CSS 如下:
Personally, I'd place it as the background image within the div, the CSS for that being:
#demo {
background: url(bg_apple_little.gif) no-repeat center center;
height: 200px;
width: 200px;
}
(假设一个带有 id="demo"
的 div,因为您已经指定了 height
和 width
添加一个 background代码>应该不是问题)
(Assumes a div with id="demo"
as you are already specifying height
and width
adding a background
shouldn't be an issue)
让浏览器承受压力.