1 新建一个html文件,命名为test.html,用于讲解css中background-position属性有什么作用。2 在test.html文件中,使用div标签创建一个模块,用于测试。3 在css标签内,设置div的背景图片为1.jpg,再使用background-position属性让背景图片在水平方面向右移动10px,在垂直方向向下移动20px。4 在浏览器打开test.html文件...
我在移动版的Safari浏览器上遇到了background-position的问题,它在其他桌面浏览器上运行良好,但在iPhone或iPad上却不行。 body { background-color: #000000; background-image: url('images/background_top.png'); background-repeat: no-repeat; background-position: center top; overflow: auto; padding: 0...