2016-11-11 6 views

答えて

1

docsを読んだことがありますか?

<dom-module id="grid-test"> 
    <template> 
    <style include="app-grid-style"> 
     :host { 
     --app-grid-columns: 3; 
     --app-grid-item-height: 100px; 
     } 

     div { 
     padding: 0; 
     list-style: none; 
     } 

     .item { 
     background-color: white; 
     border: 1px solid black; 
     } 
    </style> 

    <div class="app-grid"> 
     <a href="#" class="item">1</a> 
     <a href="#" class="item">2</a> 
     <a href="#" class="item">3</a> 
     <a href="#" class="item">4</a> 
     <a href="#" class="item">5</a> 
     <a href="#" class="item">6</a> 
     <a href="#" class="item">7</a> 
     <a href="#" class="item">8</a> 
     <a href="#" class="item">9</a> 
     <a href="#" class="item">10</a> 
     <a href="#" class="item">11</a> 
     <a href="#" class="item">12</a> 
     <a href="#" class="item">13</a> 
     <a href="#" class="item">14</a> 
    </div> 
    </template> 
    <script> 
    Polymer({ 
     is: "grid-test" 
    }); 
    </script> 
</dom-module> 
+0

こんにちはベンのaリンクの数のためのコンテナとしてdivを使用することができます。ありがとう、それは私の問題を解決する。私は何度もドキュメントを読んだことがありますが、私はこの声明を拝見しませんでした。「次に、ulやdivなどのコンテナにクラスapp-gridを追加してください。 –

関連する問題