环绕元素文本

问题描述 投票:1回答:2

我试图环绕的字体 - 真棒元素的文字,但我得到了下面enter image description here

我希望文本从顶部开始和元素绕到。这可能吗?

下面是我写https://www.bootply.com/KtlIG2icyT代码

css css3 bootstrap-4 font-awesome
2个回答
2
投票

使用此<i class="far fa-file fa-9x text-info" style="float: left; margin-right:7px;"></i>而不是你的<i class="far fa-file fa-9x text-info pull-left"></i>

    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
    
<div class="card border-secondary my-3">
        <div class="card-header">
            <h3>Title</h3>
        </div>
        <div class="card-body text-secondary">
            <div class="card-text">
                <div class="row align-text-top">
                    <div class="col px-5 ">

                        <i class="far fa-file fa-9x text-info" style="float: left; margin-right:7px;"></i>
                        Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

                    <div class="col">
                        <asp:fileupload id="fuDocument" runat="server" cssclass="btn btn-secondary" allowmultiple="False" height="200">
                        <p class="mt-2">
                            <asp:button id="btnUploadFile" runat="server" text="Υποβολή" cssclass="btn btn-primary" onclick="btnUploadFile_Click">
                        </asp:button></p>

                    </asp:fileupload></div>

                </div>
            </div>
        </div>
    </div>
</div>


            <div id="push"></div>
        

1
投票

这是我的工作:https://codepen.io/anon/pen/ZVNpQE

我能够通过增加(见下文),以你的图标元素来解决这个问题:

float: left
© www.soinside.com 2019 - 2024. All rights reserved.