【问题标题】:I put a blockquote inside a blockquote and I thought I lost my style - Solved我在一个块引用中放了一个块引用,我以为我失去了我的风格 - 已解决
【发布时间】:2014-05-30 10:17:22
【问题描述】:

[已解决] 我现在明白我并没有“丢失”我的风格,它只是通过嵌套应用了两次。我现在已经将我的字体大小移出并大大重组了我的代码,现在一切都变得更好了。

[原始问题] 在 html 中我引用了一本书,引用的文本包含另一个引用,所以我放入了一个嵌套的 blockquote 标记。我确实得到了二级缩进,但是字体样式丢失了。这样做的正确方法是什么?

[编辑:添加的代码 - 一开始我不知道如何使用 ctrl-K 引用 html 代码]

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>The Two Mouthed Sword</title>
<style type="text/css">
body
{
font-family:Arial,Helvetica,sans-serif;
font-size:100%;
background-color:#d0e4fe;
margin: auto;
max-width: 780px;
}
h2
{
text-align:center;
font-size:1.6em;
}
p
{
font-size:1.3em;
}
blockquote
{
font-size:1.3em;
}
</style>
</head>
<body>
<h2>The Two Mouthed Sword</h2>

<p>When Jesus spoke the parable of the sower...</p>

<blockquote>
14 And in them the prophecy of Isaiah is fulfilled, which says:

<blockquote>
'Hearing you will hear and shall not understand,
</blockquote>

16 But blessed are your eyes for they see, and your ears for they hear;
</blockquote>

</body>
</html>

【问题讨论】:

  • 你不应该写问题的答案。您应该编辑一个问题,使其清楚地呈现问题,然后可能发布一个答案作为答案。 问题仍然晦涩难懂,甚至具有误导性:没有一种风格是“丢失”的。您应该已经描述了您观察到的,在这种情况下,嵌套块引用中的字体更大。
  • 我不明白这就是我“失去”的全部。如果我知道,我不会有这个问题。我将尝试编辑帖子以明确这一点。谢谢。

标签: html css nested quotes


【解决方案1】:

我现在完全明白了!

在我的块引用风格中,我有:

字体大小:1.3em;

使字体变大,并且由于嵌套而被应用了两次。

我真傻。

【讨论】:

    猜你喜欢
    • 2012-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多