开发者

A repeatable and scalable image? Is it possible?

Okay here's the deal,

I have a banner graphic that I'd like to stretch 100% of the width

and

Repeat-y down the length of my site.

开发者_如何学Python

Is it possible to do both?


<html>
<body>
<div style="background: url(https://www.google.com/adsense/static/en_US/images/234x60.gif) repeat-y;background-size:100% auto;width:100%;height:100%;"></div>
</body>
</html>

Please view above code. You need to use 'background-size' to specify width of image to 100%.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜