Css词包装与风格

Nan*_*gan -1 html css html5 css3

我想用空格显示第二行换行文本.

OUTPUT:

 Lorem Ipsum is simply dummy text of the printing and typesetting 
 industry. Lorem Ipsum has been the industry's standard dummy text 
 ever since the 1500s, when an unknown printer took
Run Code Online (Sandbox Code Playgroud)

预期产量:

   Lorem Ipsum is simply dummy text of the printing and typesetting 
     industry. Lorem Ipsum has been the industry's standard dummy text ever 
     since the 1500s, when an unknown printer took
Run Code Online (Sandbox Code Playgroud)

我的代码:

<style>p{
 overflow:word-wrap;
}</style>
  <p> Lorem Ipsum is simply dummy text of the printing and typesetting 
 industry. Lorem Ipsum has been the industry's standard dummy text 
 ever since the 1500s, when an unknown printer took</p>
Run Code Online (Sandbox Code Playgroud)

提前致谢.

skr*_*ibe 7

这很容易处理.诀窍是添加一个小填充,然后用负值实际"缩进"第一行.在盒子外面思考.

p {
    padding-left: 2em;
    text-indent:-2em;
}
Run Code Online (Sandbox Code Playgroud)
<p>
 Lorem Ipsum is simply dummy text of the printing and typesetting 
 industry. Lorem Ipsum has been the industry's standard dummy text 
 ever since the 1500s, when an unknown printer took
</p>
Run Code Online (Sandbox Code Playgroud)