Firefox float bug? How do I get my float:right on the same line?

前端 未结 5 815
深忆病人
深忆病人 2021-02-01 00:41

I have the following fiddle:

http://jsfiddle.net/q05n5v4c/2/

In Chrome, it renders just fine. The chevron is on the right side.

However, in Firefox, it

5条回答
  •  悲哀的现实
    2021-02-01 01:28

    Remove the float on the span, add position: absolute to it and position it using top/right/bottom/left.
    Note: .btn-group already have position: relative from bootstrap.

    HTML

    CSS

    div.btn-group span {
      position: absolute;
      top: 7px;
      right: 12px;
    }
    

    Here's a working fiddle.

提交回复
热议问题