qq12345454
V2EX  ›  问与答

bootstrap 中 每一组 col-xs-* 是不是必须用 row 包裹起来?

  •  
  •   qq12345454 · Aug 8, 2017 · 2668 views
    This topic created in 3229 days ago, the information mentioned may be changed or developed.

    <div class="row">
        <div class="col-xs-6"></div>
        <div class="col-xs-6"></div>
    </div>
    

    上面的代码,2 个 col-xs-6 用 row 包裹起来的,

    如果把 class="row" 修改为 class="" (删除了 row)

    是不是可能会在某些浏览器下会出现兼容问题?

    2 replies    2017-08-09 12:54:59 +08:00
    crysislinux
        1
    crysislinux  
       Aug 8, 2017 via Android   ❤️ 1
    是要 row,row 上有负的 margin,col 上有 padding 来做 gutter,没 row,边上的 padding 就。。
    gelilaohuang
        2
    gelilaohuang  
       Aug 9, 2017 via Android   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 19:48 · PVG 03:48 · LAX 12:48 · JFK 15:48
    ♥ Do have faith in what you're doing.