标签云

微信群

扫码加入我们

WeChat QR Code

I want to add a black line on some characters,the black line was background photo.Please download the file as line.gif ,and to save the following css code as name insert_line.html into same directory with line.gif. body{width:1000px;margin:0 auto;}.prod_list_title_bar{ width:1000px;height:40px;float:left;line-height:18px;font-size:15px;color:#565656;background: url(../line.gif) no-repeat center; }<div id="container"><div id="prod_list"><div class="prod_list_title_bar">books</div></div></div>What i want is the following.What i get with my css code is the following.Why my css code can't add the line.gif underline the characters books?


We don't download files..it's your job to create demos that include them...and why not just use a border?

2019年04月22日13分54秒

And why are you saying a "black line on some characters" when it appears to just be an underline or bottom border?

2019年04月22日13分54秒

Can I just ask what is so special about your line, that you cannot create it via CSS and at least reduce server calls by 1

2019年04月22日13分54秒

I know the method to set border-bottom:1px solid,but why my css code can'tputthe line.gif underline books?

2019年04月22日13分54秒

it_is_a_literature, I've updated my code above to accommodate for your image.The height of your word is probably not tall enough to make its container tall enough to see the bottom of your line.

2019年04月22日13分54秒

ntgcleaner,great.

2019年04月22日13分54秒