Home  >  Article  >  Web Front-end  >  p tag problem. Please help_html/css_WEB-ITnose

p tag problem. Please help_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:53:371216browse



I put this content in the p tag. . How can I make this background change with the length of the content? ?
This goes a long way. . What to do. I tried for a long time but it didn’t work.


Reply to the discussion (solution)

background-repeat: repeat-x;

Split into two A div, a background image is placed in one div, and text content is placed in another div.
See if it works. If not, add a div to wrap it up and clear the floats.

Set height in css: auto; overflow: hidden; give it a try.

Woohoo. Neither works. . what to do. My p tag is placed in td

What is your code

#right_table{float: right;width: 400px;}
#right_table table{float: right;}
#right_table tr{max-width: 400px;}
#right_table tr img{float: right;margin-left: 100px;margin-top: -25px;}
#right_table tr .img_ma{margin -right: 55px;}
#right_table tr .meHead{margin-top:-40px;margin-right: 5px;}
.right_time{font-size: 12px;color: #787878;margin-top: 10px;margin-right: 10px; }
This is the style

                                                 ="right_table">
                                                            ​ /p>

                                                                    < Please take a look

http://www.w3school.com.cn/tags/tag_p.asp

I have seen this. . I haven't solved it yet


How to clear the blank space automatically added by p tag? ?

I have seen this. . I haven't solved it yet



How to clear the blank space automatically added by p tag? ?

I can’t understand the jsp code, please paste the front-end html and upload the pictures too

I solved it. Thank you everyone

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn