Bigger Glyphicons

后端 未结 7 1899
感情败类
感情败类 2020-12-07 13:55

How do I make bigger Glyphicons in twitter bootstrap 3.0 (not 2.3.x).

This code will make my glyphicons big:

相关标签:
7条回答
  • 2020-12-07 14:00

    Write your <span> in <h1> or <h2>:

    <h1> <span class="glyphicon glyphicon-th-list"></span></h1>
    
    0 讨论(0)
  • 2020-12-07 14:03

    You can just give the glyphicon a font-size to your liking:

    span.glyphicon-link {
        font-size: 1.2em;
    }
    
    0 讨论(0)
  • 2020-12-07 14:05

    <button class="btn btn-default glyphicon glyphicon-plus fa-2x" type="button">
    </button>
    
    <!--fa-2x , fa-3x , fa-4x ... -->
    <button class="btn btn-default glyphicon glyphicon-plus fa-3x" type="button">
    </button>

    0 讨论(0)
  • 2020-12-07 14:06

    Here's how I do it:

    <span style="font-size:1.5em;" class="glyphicon glyphicon-th-list"></span>
    

    This allows you to change size on the fly. Works best for ad hoc requirements to change the size, rather than changing the css and having it apply to all.

    0 讨论(0)
  • 2020-12-07 14:16

    In my case, I had an input-group-btn with a button, and this button was a little bigger than its container. So I just gave font-size:95% for my glyphicon and it was solved.

    <div class="input-group">
        <input type="text" class="form-control" id="pesquisarinbox" placeholder="Pesquisar na Caixa de Entrada">
        <div class="input-group-btn">
            <button class="btn btn-default" type="button">
                <span class="glyphicon glyphicon-search" style="font-size:95%;"></span>
            </button>
        </div>  
    </div>
    
    0 讨论(0)
  • 2020-12-07 14:20

    If you are using bootstrap 3, use tag, like this <small><span class="glyphicon glyphicon-send"></span></small> It works perfect for Bootstrap 3.
    You can even use multiple <small> tags to set the size more smaller.
    Code:
    <small><small><span class="glyphicon glyphicon-send"></span></small></small>

    0 讨论(0)
提交回复
热议问题