您可以尝试div在HTML中使用a ,如下所示:
<div id='dv'></div>
Run Code Online (Sandbox Code Playgroud)
并使用这样的背景图像:
#dv {
background: url('http://pieisgood.org/images/slice.jpg') no-repeat 0 0;
background-position: center;
}
html,body,#dv { /* so that the #dv can fill up the page */
width:100%;
height:100%;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10242 次 |
| 最近记录: |