我有一个我想要的图像,它占据了整个屏幕,但在屏幕的顶部和左侧留下了一些空白,我不知道为什么要这样做。我附上了它的代码。
img {
background: 0px 0px / 100% 100% no-repeat scroll rgb(12, 12, 12);
height: 100%;
width: 100%;
position: fixed;
}
<img src="http://www.morefree.net/wp-content/uploads/2013/03/black-wallpaper-01.jpg">
最佳答案
关于html - 图像未使用 CSS 全屏显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30584318/