开发者

A repeatable and scalable image? Is it possible?

开发者 https://www.devze.com 2023-04-06 00:29 出处:网络
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.

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

精彩评论

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

关注公众号