html - 您如何引用说出报价的人显示在您的文档中?

标签 html css xcode tags footer

我在我的文档中添加了一个引用,就像这样(请看底部) UX 总监 Fred Beecher 没有出现在我的文档中引文的正下方。我确实有一个固定的页脚,它位于包含社交媒体图标的网页底部。当我检查时,看起来文本放在页脚中,底部有图标。是否有可能让 Fred Beecher... 就在报价下方?

<article class="quote">
  <blockquote
    cite="https://careerfoundry.com/en/blog/ux-design/15-inspirational-ux-design-quotes-that-every-designer-should-read/"
  >
    <p>
      How do I explain what I do at a party? The short version is that I say I
      humanize technology.
    </p>
    <footer>—Fred Beecher, Director of UX</footer>
  </blockquote>
</article>

最佳答案

使用 Bootstrap 这实际上是可能的。您将在下面的代码片段中获得所需的输出。

**请注意:**我已经包含了一些 Bootstrap 4 脚本来执行此任务。

 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

<blockquote class="blockquote">
  <p>How do I explain what I do at a party? The short version is that I say I humanize technology.</p>
  <footer class="blockquote-footer">Fred Beecher, Director of UX</footer>
</blockquote>

更新:您也可以通过删除所有 Bootstrap 4 CDN 链接路径来实现同样的目的。仅使用 CSS 来增强您的报价。下面是 CSS 代码,后面是 HTML 标记。

.quote{
font-weight: 600;
font-size: 20px;
font-family: 'Segoe UI Light';
}

.footer
{

font-size: 20px;
font-family: 'Segoe UI Light';
}
<blockquote>
  <p class="quote">How do I explain what I do at a party? The short version is that I say I humanize technology.</p>
  <p class="footer">- Fred Beecher, Director of UX</p>
</blockquote>

希望这对您有所帮助。

关于html - 您如何引用说出报价的人显示在您的文档中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58908827/

相关文章:

javascript - 禁用过去的时间

javascript - 创建 div 并向其添加背景图像

css - 使 flex 元素扩展到一行的全宽,但在另一行中都保持相同的大小

javascript 执行时间太长,让观众等待太久

php - linux 中的 htdocs 路径

objective-c - 使用 SDWebImage 时构建失败

ios - 如何删除 Xcode 中的签名证书?

ios - 使用带有 swift 的格式化文本字段创建具有安全文本输入的 PIN 码

html - 使用带有 Chromium WebAudio API 的纯 javascript 生成音调

class - 同一元素中的两个框阴影没有逗号分隔