如何在Polymer 1.0中创建2列布局?

Ste*_*hlf 4 html css polymer

如何在Polymer 1.0中创建双列布局?

Jus*_* XL 5

检查iron-flex-layout.

您只需要定义一个水平布局 div,然后flex用来决定每个内部需要多少部分div.

  <div class="horizontal layout" style="height:100%">
    <div class="flex-1">
      Left column
    </div>
    <div class="flex-4">
      Right column
    </div>
  </div>
Run Code Online (Sandbox Code Playgroud)

在这里查看实时样本.