Is there a working implementation of CSS3 Grid Layout for Webkit?

前端 未结 2 964
日久生厌
日久生厌 2021-02-05 17:17

CSS Grid Layout, Editor’s Draft, 21 November 2011

I am in the midst of producing a prototype that will be shown to client on selected devices and browse

2条回答
  •  面向向阳花
    2021-02-05 17:40

    http://caniuse.com/css-grid

    As of March 2017, quite a few browsers now support CSS Grid Layout:


    old answer:

    There's something in the works, here is the full issue tree for it's implementation:

    https://bugs.webkit.org/showdependencytree.cgi?id=60731&hide_resolved=0

    Here's some CSS from this file:

    .gridWithFixed {
        display: -webkit-grid;
        -webkit-grid-columns: 7px 11px;
        -webkit-grid-rows: 17px 2px;
    }
    

    You can see the intent. Unfortunately, they've only got as far as parsing the CSS.

    So, it looks like right now there's no working implementation of this for WebKit.

    While Grid Layout has very poor support, Flexbox has decent support (apparently, including IE10). I suggest you use Flexbox instead.

提交回复
热议问题