我在一个blockquote中放了一个blockquote,我以为我失去了我的风格 - 解决了

时间:2014-04-15 20:49:19

标签: html css nested quotes

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

[原始问题] 在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>

1 个答案:

答案 0 :(得分:0)

我现在完全看到它了!

在我的blockquote风格中,我有:

字体大小:1.3em;

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

傻傻的我。

相关问题