我正在尝试创建一个有完整页面背景图片的网站。我已经让它在桌面版本上工作,但是当我把它推到github并在我的手机上查看它时,背景图像只是顶部的一个长图像。我在我的background-size: cover中使用css。下面是屏幕截图。我怎样才能使它如此移动,它占据了整个空间?谢谢:)
桌面版本:
移动版本:
.background1
{
/* Location of the image */
background-image: url(images/background-photo.jpg);
/* Image is centered vertically and ho
调研互动课堂的 ticSdk.getBoardInstance().addBackgroundPic 新增白板并添加背景图片接口报js错误,直接设置背景图片接口是好的
board_sdk.mini.js:1 Uncaught TypeError: this.board.createBoradId is not a function
at d.addBackgroundPic (board_sdk.mini.js:1)
at online.addBackgroundPic (appForT.js?1=1:487)
at HTMLButtonElement.<anon
好了,这个可以用了,海洋图片在背景中显示,但重复4次,填满了整个屏幕。
<style type="text/css">
body {background-image:url('ocean.png');}
</style>
<body>
</body>
然后更改为
body {background-image:url('ocean.png') no-repeat center center;}
现在没有任何背景图片显示出来了。