Bootstrap 3 class visible-lg moves span to a new line

前端 未结 2 2301
野性不改
野性不改 2021-02-20 11:44

How do I make class visible-lg not to move the span to a new line?

The following HTML renders as one line:

Device is:

2条回答
  •  借酒劲吻你
    2021-02-20 12:25

    The solution to this issue is to set inline style for the span of class="visible_lg" as follows:

    style="display: inline !important"
    

    The "!important" is the key since Bootstrap 3 sets this style to "block !important"

提交回复
热议问题