首页 > 解决方案 > 如何将右下角的作者姓名添加到 HTML 中的引用中

问题描述

我想在引用结束后在右下角添加引用的作者姓名。我使用了粗体标签,它确实有效,但我想在不使用粗体标签的情况下这样做。这是示例代码:

<div class="container mx-auto flex px-3 py-24 md:flex-row flex-col items-center">
 <p>“No matter what you achieve, what you want to aspire to be, or how famous and powerful you become, the most important thing is whether you are excited about each and every moment of your life because of your work and people around you.”
                <br>
                <b style="float: right;">- Sushant Singh Rajpoot</b>
  </p>
            
  </div>

标签: htmlcss

解决方案


尝试:

<div class="container mx-auto flex px-3 py-24 md:flex-row flex-col items-center">
 <p>“No matter what you achieve, what you want to aspire to be, or how famous and powerful you become, the most important thing is whether you are excited about each and every moment of your life because of your work and people around you.”
                <br>
                <span style="float: right;">- Sushant Singh Rajpoot</span>
  </p>
            
  </div>

推荐阅读