开发者

Background image and after background color in one div

开发者 https://www.devze.com 2023-01-13 10:56 出处:网络
Example code: <div class=\"ex\">Bla bla bla bla</div> In the top will be background-image and after when it\'ll finish display the background-image it\'ll disply a background-开发者_如何

Example code:

<div class="ex">Bla bla bla bla</div>

In the top will be background-image and after when it'll finish display the background-image it'll disply a background-开发者_如何学Gocolor.

Somthing like that:

[Image] text
[color] more text
[color] mor text..

How do I do it with CSS?

Thank you.


background: url("img/folder/file.jpg") repeat-x #000000;

Change the hex to whatever color you need.


try to use background image repeat property:

background-repeat: repeat | repeat-x | repeat-y | no-repeat
0

精彩评论

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

关注公众号