在blockquote标记后无法删除文本上的粗体字体粗细

时间:2017-07-02 22:21:36

标签: html

请问我在代码中的blockquote标记之后摆脱了文本的粗体字重量。这是我的代码片段:

<blockquote cite="https://books.google.com/?id=sUWP_SM7IrEC&pg=PA98">

<p>I say to you today, my friends, so even though we face the difficulties of today and tomorrow, I still have a dream. It is a dream deeply rooted in the American dream.
I have a dream that one day this nation will rise up and live out the true meaning of its creed: 'We hold these truths to be self-evident</p>

</blockquote>
      <br />
      <p>The speech became known as greatest oratorical speech in the history of America and facilitated the passage of the Civil Right Act of 1964.
    </p>

2 个答案:

答案 0 :(得分:0)

<blockquote>标记之后打开p标记,如下所示:

<p>
    <blockquote cite="https://books.google.com/?id=sUWP_SM7IrEC&pg=PA98">I say to you today, my friends, so even though we face the difficulties of today and tomorrow, I still have a dream. It is a dream deeply rooted in the American dream.
I have a dream that one day this nation will rise up and live out the true meaning of its creed: 'We hold these truths to be self-evident
    </blockquote>
</p>
      <br />
<p>The speech became known as greatest oratorical speech in the history of America and facilitated the passage of the Civil Right Act of 1964.</p>

并且您应始终确保以正确的层次结构顺序关闭所有标记。例如:

<p> <---- opening tag

    <b> <---- another opening tag

        **** some text here ****

    </b> <---- closing tag
</p> <---- another closing tag

答案 1 :(得分:0)

不确定您的具体样式,但您可以通过将嵌套选择器应用于CSS来隔离<blockquote>文本,以指示特异性:

p {
  font-weight: normal;
}

blockquote p {
  font-weight: bold;
}