-3
這隻能使用HTML5和CSS3來完成,還是需要使用JavaScript/jQuery?我怎樣才能讓背景圖像垂直重複滾動?
這隻能使用HTML5和CSS3來完成,還是需要使用JavaScript/jQuery?我怎樣才能讓背景圖像垂直重複滾動?
您可以添加一個css屬性:background-repeat:repeat-y;
下面是一個例子:
body {
background-image:url('https://mdn.mozillademos.org/files/12005/starsolid.gif');
background-repeat: repeat-y;
background-position: top;
}
h1, p {
color: white;
}
<body>
<h1>H1 heading</h1>
<p>This is the content</p>
</body>
是/否。這些將是答案。這不是stackoverflow的問題。在這裏閱讀http://stackoverflow.com/help/mcve –
http://www.w3schools.com/cssref/tryit.asp?filename=trycss_background-repeaty試試這個 –
['background-repeat'](https:// developer.mozilla.org/en-US/docs/Web/CSS/background-repeat) – Andreas