简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css"> <body style="padding:20px;"> <h2>Foundation 块状网格</h2> <p>通过添加多个块类,在不同屏幕指定不同是均分数量</p> <div class="row"> <ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-4"> <li><img src="/static/i/foundation/newyork.jpg" alt="New York"></li> <li><img src="/static/i/foundation/paris.jpg" alt="Paris"></li> <li><img src="/static/i/foundation/sanfran.jpg" alt="San Francisco"></li> </ul> </div>
运行结果: