源代码:
提交运行 »
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://www.fmpq.com/jscss/bootstrap/foundation.min.css"> <script src="http://www.fmpq.com/jscss/bootstrap/jquery.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/foundation.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/modernizr.js"></script> </head> <body> <div class="row"> <h2>网格 - 偏移量</h2> <p>可以使用 <code>.large-offset-*</code> (或 <code>.small-offset-*</code>) 类设置列向右移。 左侧外边距的列数量使用 * 号控制:</p> <div class="large-1 columns" style="background-color:yellow;">1</div> <div class="large-11 columns" style="background-color:pink;">11</div> </div> <div class="row"> <div class="large-1 columns" style="background-color:yellow;">1</div> <div class="large-10 large-offset-1 columns" style="background-color:pink;">10, offset 1</div> </div> <div class="row"> <div class="large-1 columns" style="background-color:yellow;">1</div> <div class="large-9 large-offset-2 columns" style="background-color:pink;">9, offset 2</div> </div> <div class="row"> <div class="large-1 columns" style="background-color:yellow;">1</div> <div class="large-8 large-offset-3 columns" style="background-color:pink;">8, offset 3</div> </div> </body> </html>
测试结果: