开发者

Background image and after background color in one div

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜