2017-07-02 32 views
0

請問我在刪除代碼中的blockquote標記後的文本的粗體字體重量時遇到問題。這是我的代碼片段:在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> 

回答

0

不能確定你的具體樣式,但你總是可以隔離<blockquote>文字運用嵌套選擇器CSS,以表明特異性:抽出時間來幫助

p { 
    font-weight: normal; 
} 

blockquote p { 
    font-weight: bold; 
} 
+0

感謝您的幫助,它運作良好。 –

+0

如果此方法有效,請將其標記爲選定的答案,然後單擊。這有助於搜索過濾器。謝謝!很高興爲你工作。 :) – jswebb

0

p標籤這樣以後打開<blockquote>標籤:

<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 
+0

謝謝我嘗試了你寫的東西,但它仍然不起作用,但是我將這種樣式應用於p標籤,並且它工作正常: p font-weight:normal; } 謝謝。 –