为什么我的段落缩进就像上面的段落一样

时间:2016-09-17 04:06:31

标签: html

有谁能告诉我为什么我的代码不会像上面的段落一样缩进?

我需要说出" -Justin Reynolds"缩进就像它上面的那个一样。



<hr>
<section>

  <blockquote>I was struggling to lose weight after the birth of my second child. My friend recommended NewYou, and after the first three months I had lost 30 pounds. Thanks to the personal attention from their trainers and counselors, I've been able to keep the
    weight off for two years. I'm in the best shape of my life!</blockquote>

  <cite>&#8212;Justine Reynolds, Cleveland </cite> 

  <hr>
  <h3>Call today to speak to one of our certified fitness specialists.</h3>


</section>
&#13;
&#13;
&#13;

2 个答案:

答案 0 :(得分:1)

在换行符之后将Justine Reynolds....行放在块引号内

<hr>
<section>

  <blockquote>I was struggling to lose weight after the birth of my second child. My friend recommended NewYou, and after the first three months I had lost 30 pounds. Thanks to the personal attention from their trainers and counselors, I've been able to keep the
    weight off for two years. I'm in the best shape of my life!
    <br>
    <cite>&#8212;Justine Reynolds, Cleveland </cite> 

  </blockquote>


  <hr>
  <h3>Call today to speak to one of our certified fitness specialists.</h3>


</section>

答案 1 :(得分:1)

您可以将<cite>放入blockquote并使用<br>

创建新行

<hr>
<section>

  <blockquote>I was struggling to lose weight after the birth of my second child. My friend recommended NewYou, and after the first three months I had lost 30 pounds. Thanks to the personal attention from their trainers and counselors, I've been able to keep the weight off for two years. I'm in the best shape of my life!

    <br>
    <br>
    <cite>&#8212;Justine Reynolds, Cleveland </cite>
  </blockquote>



  <hr>
  <h3>Call today to speak to one of our certified fitness specialists.</h3>


</section>

或者使用CSS移动<cite>左侧以使其与blockquote对齐

cite {
  margin-left:40px;
}
<hr>
<section>

  <blockquote>I was struggling to lose weight after the birth of my second child. My friend recommended NewYou, and after the first three months I had lost 30 pounds. Thanks to the personal attention from their trainers and counselors, I've been able to keep the weight off for two years. I'm in the best shape of my life!
  </blockquote>

  <cite>&#8212;Justine Reynolds, Cleveland </cite>

  <hr>
  <h3>Call today to speak to one of our certified fitness specialists.</h3>


</section>