Home >Web Front-end >HTML Tutorial >Front desk problem! ! ! ! ! p tag_html/css_WEB-ITnose

Front desk problem! ! ! ! ! p tag_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:17:531310browse

When adding data in the background, the editing version is used. After saving, there is a P tag. The saved data is extracted and displayed in a div in the front desk. The problem arises. p does not wrap automatically! ! They are all squeezed together,,,,,,, brothers, help! ! !

I have tried this method, but no solution,,,,
#jianjie {word-break:break-all; word-wrap:break-word}
#jianjie p {line-height:25px; width:200px;}


Reply to the discussion (solution)

See if you have added an absolute positioning style to p?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>    <meta http-equiv="Content-Type" content="text/html; charset=GB2312">    <title></title>    <script type="text/javascript">            </script></head><body>   <div sytle = "word-break:break-all; word-wrap:break-word;">   <p style ="line-height:25px; width:200px;word-break:break-all; word-wrap:break-word;">后台添加数据时用的是编辑版,保存后有P标签,在前台一个div中将保存的数据提取出来显示,,,问题出来了,p不自动换行!!都挤压在一起了,,,,,,师兄们救命啊!!!这样的方法,我都试了试,么有解决,,,,</p>  </div></body></html>

I roughly simulated it
said there is no problem


The machine is poisoned

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