html 响应式网格

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 响应式网格相关的知识,希望对你有一定的参考价值。

/* responsive margin 

Formula  target / context = result 

10px / 1000px = 0.01 = 1%

20px / 1000px = 0.02 = 2%

*/



* {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}                       
.row {
    width: 100;
    max-width:1600px;
    clear:both;
}
.column, .columns {
    float:left;
    position:relative;
    min-height:1px;
    padding:0 15px;
}
<!-- http://gridulator.com/

Formula 

target / context = result -->


<style>

/*
width: 1000px
# columns 12
columns width: 65px
gutter : 20px 

.grid_1 { width: 65px; }
.grid_2 { width: 150px; }
.grid_3 { width: 235px; }
.grid_4 { width: 320px; }
.grid_5 { width: 405px; }
.grid_6 { width: 490px; }
.grid_7 { width: 575px; }
.grid_8 { width: 660px; }
.grid_9 { width: 745px; }
.grid_10 { width: 830px; }
.grid_11 { width: 915px; }
.grid_12 { width: 1000px; }
*/

--------------

convert to

Formula  target / context = result 

915px / 1000px = 0.915 

convert to percentage ( move the decimail two places to the right)

0.915 = 91.5%

.grid_1 { width: 6.5%; } /* 65px */
.grid_2 { width: 15%;  } /* 150px */
.grid_3 { width: 23.5%;} /* 235px */
.grid_4 { width: 32%;  } /* 320px */
.grid_5 { width: 40.5%;} /* 405px */
.grid_6 { width: 49%;  } /* 490px */
.grid_7 { width: 57.5%;} /* 575px */
.grid_8 { width: 66%;  } /* 660px */
.grid_9 { width: 74.5%;} /* 745px */
.grid_10 { width: 83%; } /* 830px */
.grid_11 { width: 91.5%;} /* 915px */
.grid_12 { width: 100%;} /* 1000px */

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
  margin: 0 20px 10px 0;
  float: left;
  display: block;
}

.alpha{ margin-left: 0px;}
.omega{ margin-right: 0px;}

.container {
  width: 90%;
  max-width: 1000px;
  margin:auto;
}


  
</style>
<!DOCTYPE html>
<html>
<head>
	<title>Grid Layout</title>
	<meta name="viewport" content="width=device-width">
	<link rel="stylesheet" href="css/normalize.css">
	<link rel="stylesheet" href="css/grid.css">
	<link rel="stylesheet" href="css/style.css">
	<style>
	  /* Global
================================ */

.grid-container {
	padding-left: 10px;
	padding-right: 10px;
	margin-left: auto;
	margin-right: auto;
}
img {
	width: 100%;
}

/* Media Queries
================================ */

@media (min-width: 1px) and (max-width: 767px)  {
	.grid-container > [class^="grid-"] {
		padding-top: 5px;
		padding-bottom: 5px;
	}
	.hide-mobile {
		display: none;
	}
}

@media (min-width: 768px) {

	/* Columns
	================================ */

	.grid-container > [class^="grid-"] {
		float: left;
		min-height: 1px;
		padding-left: 10px;
		padding-right: 10px;
		margin-left: 2%;
	}
	.grid-container > [class^="grid-"]:first-child {
		margin-left: 0;
	}
	.grid-container > [class^="grid-"]:last-child {
		float: right;
	}

	/* Columns are 65px wide, with 20px gutters
	=========================================== */

	.grid-1 {
		width: 6.5%;
	}
	.grid-2 {
		width: 15%;
	}
	.grid-3 {
		width: 23.5%;
	}
	.grid-4 {
		width: 32%;
	}
	.grid-5 {
		width: 40.5%;
	}
	.grid-6 {
		width: 49%;
	}
	.grid-7 {
		width: 57.5%;
	}
	.grid-8 {
		width: 66%;
	}
	.grid-9 {
		width: 74.5%;
	}
	.grid-10 {
		width: 83%;
	}
	.grid-11 {
		width: 91.5%;
	}
	.grid-12 {
		width: 100%;
	}

	/* Clearfix
	================================ */

	.grid-container:after,
	.group:after {
	  content: " ";
	  display: table;
	  clear: both;
	}
}
@media (min-width: 1200px) {
	.grid-container {
		max-width: 1100px;
	}
}



/* Page Styles
================================ */

* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
body {
	font: normal 1em/1.5 sans-serif;
	color: #222;
	background-color: #edeff0;
}
img {
	border: solid 1px;
	padding: 5px;
}

/* Main Layout Styles
================================ */

.main-header {
	padding-top: 10px;
	padding-bottom: 10px;
	background-color: #384047; 
}
.main-logo {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1.5em;
}
.main-logo a, 
.main-nav a {
	display: block;
	text-align: center;
	border-radius: 5px;
	color: white;
	text-decoration: none;
	padding: 10px 20px;
}
.main-logo a { 
	background-color: #5fcf80; 
}
.main-nav a { 
	background-color: #3f8abf; 
}
.main-footer {
	text-align: center;
	margin-top: 30px;
	padding-top: 5px;
	padding-bottom: 5px;
 	background-color: #b7c0c7;
}

@media (min-width: 768px) { 

	/* Main Layout Styles
	================================ */

	body {
		padding-top: 75px;
	}
	.main-header {
		position: fixed;
		top: 0;
		width: 100%;
	}
	.main-nav {
		text-align: right;
	}
	.main-nav li {
		margin-top: 6px;
		margin-left: 10px;
		display: inline-block;
	}
	.main-banner {
		background: #dfe2e4;
		text-align: center;
		padding: 50px 15px;
		margin-bottom: 20px;
	}

	/* Imagery
	================================ */

	.feat-img {
		width: 45%;
		float: left;
		margin: 5px 20px 10px 0;
	}

}

@media (min-width: 1px) and (max-width: 767px)  {
	.main-nav li {
		margin-top: 12px;
	}
}
	</style>
</head>
<body>
	<header class="main-header">
		<div class="grid-container">		
			<h1 class="grid-2 main-logo"><a href="#">Logo</a></h1>
			<ul class="grid-8 main-nav">
				<li><a href="#">Link 1</a></li>
				<li><a href="#">Link 2</a></li>
				<li><a href="#">Link 3</a></li>
				<li><a href="#">Link 4</a></li>
			</ul>
		</div>
	</header>
	<div class="main-banner hide-mobile">
		<h1>This is the Main Banner Heading</h1>
		<p>Andouille pork chop pancetta drumstick ground round beef ribs swine brisket ham.</p>
	</div>
	<div class="grid-container">
		<div class="grid-8">
			<h2>Primary Content</h2>
			<img class="feat-img" src="http://lorempixel.com/400/300" />
			<p>Bacon ipsum dolor sit amet chicken pork ground round brisket corned beef ball tip shank tail salami filet mignon ham hock pork belly venison shankle. Pig kielbasa drumstick sausage pork chop boudin. Chicken t-bone salami pork chop, beef ribs kevin ham tri-tip beef venison biltong brisket.</p>
			<p>Venison strip steak meatball chicken, brisket prosciutto sirloin. Capicola drumstick brisket tri-tip salami. Chicken beef jerky, tail turkey prosciutto cow ham sirloin boudin tenderloin.</p>
		</div>
		<div class="grid-4">
			<h3>Secondary Content</h3>
			<p>Strip steak tenderloin kevin swine meatloaf capicola, doner beef turducken pancetta corned beef pork loin shoulder.</p>
			<hr>
			<p>Pork filet mignon leberkas, tail swine venison pancetta turkey shoulder brisket chalkers likes hamburgers.</p>
			<hr>
			<p>Meatball pastrami shoulder, brisket ribeye spare ribs turkey tongue strip steak t-bone.</p>
		</div>
	</div>
	<div class="grid-container hide-mobile">
		<div class="grid-4">
			<h2>Content "Below the Fold"</h2>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis facilisis, nisl id feugiat venenatis, massa nunc dignissim arcu, ut dictum arcu magna ac urna. Aliquam eget enim ac diam tincidunt tristique. In blandit ultricies tempor. Pellentesque habitant morbi tristique senectus et netus et malesuada.</p>
		</div>
		<div class="grid-4">
			<h2>Content "Below the Fold"</h2>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis facilisis, nisl id feugiat venenatis, massa nunc dignissim arcu, ut dictum arcu magna ac urna. Aliquam eget enim ac diam tincidunt tristique. In blandit ultricies tempor. Pellentesque habitant morbi tristique senectus et netus et malesuada.</p>
		</div>
		<div class="grid-4">
			<h3>Extra Content</h3>
			<p>Capicola doner turkey tail swine pork belly shank, t-bone prosciutto pastrami pork chop ground round.</p>
			<hr>
			<p>Pork filet mignon leberkas, tail swine venison pancetta turkey shoulder brisket chalkers likes hamburgers.</p>
		</div>
	</div>	
	<footer class="main-footer">
		<p>&copy;2014 Example Layout</p>
	</footer>
</body>
</html>
/*Flexible grids - 100% grid system

Pixels are out. Percents are in */

.one { width:8.3333333333%; } 
.two { width:16.6666666667% } 
.three { width:25%; } 
.four { width:33.3333333333%; } 
.five { width:41.6666666667%; } 
.six { width:50%; } 
.seven { width:58.3333333333%; } 
.eight { width:66.6666666667%; } 
.nine { width:75%; } 
.ten { width:83.333333333%; } 
.eleven { width:91.666666667%; } 
.twelve { width:100%; }
<!-- Grid  Adam Kaplan.-->

<!DOCTYPE html>
<html>
  <head>
    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Grid</title>
    <meta name="description" content="A simple guide to responsive design.">

    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSS -->
    <link rel="stylesheet" href="css/normalize.css">
    <!--[if lt IE 9]>
      <script src="/js/html5shiv.js"></script>
    <![endif]-->

    <!-- Google Fonts -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
    
    <!-- Grid -->
    <style>

    /* Layout
   ========================================================================== */

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font: 100%/1.5 "Open Sans", sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 40rem) {
  html { font-size: 112%; }
}

@media (min-width: 64rem) {
  html { font-size: 120%; }
}

body {
  background-color: #fff;
  color: #555;
}

.container {
  margin: 0 auto;
  max-width: 53rem;
  width: 90%;
}

/* Header
   ========================================================================== */

header {
  background-color: #497bad;
  text-align: center;
}

.intro { margin: 2rem 0; }

@media (min-width: 40rem) {
  .intro { margin: 4rem 0; }
}

header h1 {
  border: 3px solid #fff;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  color: #fff;
  padding: .4rem .6rem;
  display: inline-block;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

header p {
  color: rgba(255,255,255,0.7);
  margin: 0 auto;
}

header a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

header a:hover { text-decoration: none; }

.mobile {
  margin: 0 auto;
  max-width: 150px;
}

@media (min-width: 40rem) {
  .mobile { max-width: 250px; }
}

/* Section
   ========================================================================== */

section {
  border-top: 1px solid #eee;
  text-align: center;
  padding: 2rem 0;
}

section:first-of-type { border-top: none; }

@media (min-width: 40rem) {
  section { padding: 4rem 0; }
}

/* Mobile First Grid
   ========================================================================== */

.column { margin-bottom: 1.5rem; }

@media (min-width: 40rem) {
  .column {
    float: left;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .column.full { width: 100%; }
  .column.two-thirds { width: 66.7%; }
  .column.half { width: 50%; }
  .column.third { width: 33.3%; }
  .column.fourth { width: 25%; }
  .column.flow-opposite { float: right; }
}

/* Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 1.3rem;
  line-height: 1.3em;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  h1 { font-size: 1.5rem; }
}

h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

p {
  color: #999;
  margin: 0 auto;
  max-width: 30rem;
}

blockquote { margin: 0; }

blockquote p {
  color: #bbb;
  font-style: italic;
  margin-bottom: 1.5rem;
}

cite { color: #bbb; }

/* Code
   ========================================================================== */

code {
  background-color: #f8f8f8;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  border: 1px solid #ddd;
  font-family: Consolas, "Liberation Mono", Courier, monospace;
  font-size: 0.8rem;
  padding: 0.1rem 0.3rem;
  position: relative;
  top: -1px;
  white-space: nowrap;
}

/* Lists
   ========================================================================== */

ul {
  margin: 0;
  text-align: left;
}

@media (min-width: 40rem) {
  ul { display: inline-block; }
}

/* Links
   ========================================================================== */

a {
  color: #497bad;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Buttons
   ========================================================================== */

.button {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #497bad;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.button:hover {
  background: #5183b6;
  text-decoration: none;
}

@media (min-width: 40rem) {
  .button {
    display: inline-block;
    font-size: 0.9rem;
  }
}

/* Elements
   ========================================================================== */

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2rem auto;
  width: 3rem;
}

@media (min-width: 40rem) {
  hr { margin: 2.5rem auto; }
}

hr.small { margin: 1.5rem auto; }

.circle {
  border: 3px solid #555;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  color: #555;
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  height: 3.2rem;
  line-height: 1.7em;
  margin: 0 auto 1rem auto;
  text-align: center;
  width: 3.2rem;
}

img {
  display: block;
  height: auto;
  margin: 0 auto 1.5rem auto;
  width: 100%;
}

.rwd {
  margin: 0 auto 1.5rem auto;
  max-width: 440px;
}

/* Examples
   ========================================================================== */

.example {
  border-top: none;
  background-color: #497bad;
  color: #fff;
}

.example p { color: rgba(255,255,255,0.7); }
.example img { margin: 0; }

.fragmentation {
  background-image: url("/images/fragmentation.png");
  background-size: cover;
  min-height: 250px;
}

@media (min-width: 40rem) {
  .fragmentation { min-height: 500px; }
}

.mobile-first .column {
  float: none;
  margin-bottom: 1rem;
}

.grid { text-align: center; }

.grid span {
  background: rgba(225,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: block;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.grid .container {
  border: 2px dashed rgba(255,255,255,0.3);
  padding: 1rem 1rem 0 1rem;
}

@media (min-width: 40rem) {
  .grid .container { padding: 1rem 0 0 0; }
}

.grid .column { margin-bottom: 1rem; }

.row-example .container {
  border: 2px dashed rgba(255,255,255,0.2);
  padding: 1rem;
}

.row-example .row {
  background: rgba(225,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  padding: 1rem 1rem 0 1rem;
  margin-bottom: 1rem;
}

.row-example .row:last-of-type { margin-bottom: 0; }

@media (min-width: 40rem) {
  .row-example .row { padding: 1rem 0 0 0; }
}

.gutters {
  border: 2px dashed #eee;
  margin-bottom: 2rem;
  max-width: 39rem;
  padding: 1rem 1rem 0 1rem;
}

.gutters .column {
  background: #fb917e;
  margin-bottom: 1rem;
}

.gutters span {
  background: #f8f8f8;
  color: #999;
  display: block;
  padding: 1rem 0;
}


/* Gist Overrides
   ========================================================================== */

.gist .gist-file {
  font-size: .9rem !important;
  margin: 0 auto;
  max-width: 39rem;
  overflow: hidden !important;
  text-align: left;
}

.gist .gist-file .gist-data {
  background: #f8f8f8 !important;
  border-bottom: none !important;
}

.gist .gist-file .gist-meta {
  display: none !important;
}

.gist-syntax .k {
  color: #555 !important;
  font-weight: normal !important;
}

/* Utilities
   ========================================================================== */

.remove-padding { padding-bottom: 0; }
.remove-border { border: none; }

/* Clearfix by Nicolas Gallagher
   ========================================================================== */

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }






</style>

  </head>

  <body>
    <header class="clearfix">
      <div class="container">
         <p>A simple guide to responsive design.<br>Made by <a href="/" target="_blank">Adam Kaplan</a>.</p>        
    </header>

    <hr>

    <section class="example grid">
      <div class="container">
        <div class="row clearfix">
          <div class="column full">
            <span>.column .full</span>
          </div>
        </div>

        <div class="row clearfix">
          <div class="column two-thirds">
            <span>.column .two-thirds</span>
          </div>

          <div class="column third">
            <span>.column .third</span>
          </div>
        </div>

        <div class="row clearfix">
          <div class="column half">
            <span>.column .half</span>
          </div>

          <div class="column half">
            <span>.column .half</span>
          </div>
        </div>

        <div class="row clearfix">
          <div class="column third">
            <span>.column .third</span>
          </div>

          <div class="column third">
            <span>.column .third</span>
          </div>

          <div class="column third">
            <span>.column .third</span>
          </div>
        </div>

        <div class="row clearfix">
          <div class="column fourth">
            <span>.column .fourth</span>
          </div>

          <div class="column fourth">
            <span>.column .fourth</span>
          </div>

          <div class="column fourth">
            <span>.column .fourth</span>
          </div>

          <div class="column fourth">
            <span>.column .fourth</span>
          </div>
        </div>
      </div>
    </section>

    <section>
      <div class="container">
        <div class="circle">7</div>
        <h1>Create Rows</h1>
        <hr>
      </div>
    </section>

    <section class="example grid row-example">
      <div class="container">
        <div class="row clearfix">
          <div class="column half">
            <span>.column .half</span>
          </div>

          <div class="column half">
            <span>.column .half</span>
          </div>
        </div>

        <div class="row clearfix">
          <div class="column half">
            <span>.column .half</span>
          </div>

          <div class="column half">
            <span>.column .half</span>
          </div>
        </div>
      </div>
    </section>

    <section>
      <div class="container">
        <h1>Flow Opposite</h1>
        <p>Add the class <code>.flow-opposite</code> to columns where you want content to display first on mobile but
        appear on the right on larger screens.</p>
        <hr>
      </div>
    </section>

    <section class="example grid">
      <div class="container">
        <div class="row clearfix">
          <div class="column half flow-opposite">
            <span>.column .half .flow-opposite</span>
          </div>

          <div class="column half">
            <span>.column .half</span>
          </div>
        </div>
      </div>
    </section>

    <section>
      <div class="container">
        <h1>Practice Makes Perfect</h1>
        <p>By following these simple steps, you are on the path to responsive
        web design mastery. Keep practicing and help make the web a better,
        more useable place.</p>
        <hr>
        <p><a href="https://github.com/aekaplan/grid" target="_blank" class="button">View the Code</a></p>
      </div>
    </section>

  </body>
</html>
<!-- Responsive grids 12 columns -->
<html>
<head>
	<title></title>
  <style>

.grid_1 { width: 6.5%; } /* 65px */
.grid_2 { width: 15%;  } /* 150px */
.grid_3 { width: 23.5%;} /* 235px */
.grid_4 { width: 32%;  } /* 320px */
.grid_5 { width: 40.5%;} /* 405px */
.grid_6 { width: 49%;  } /* 490px */
.grid_7 { width: 57.5%;} /* 575px */
.grid_8 { width: 66%;  } /* 660px */
.grid_9 { width: 74.5%;} /* 745px */
.grid_10 { width: 83%; } /* 830px */
.grid_11 { width: 91.5%;} /* 915px */
.grid_12 { width: 100%;} /* 1000px */

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
  margin: 0 20px 20px 0;
  float: left;
  display: block;
  background-color: LightSteelBlue;
}

.alpha{ margin-left: 0px;}
.omega{ margin-right: 0px;}

.container {
  width: 90%;
  max-width: 1000px;
  margin:auto;
}


  </style>
</head>
<body>


	 <div class="container">


    <h1>Responsive grid</h1>
    <div class="row">
      <div class="grid_12">
        <h3>Grid 12</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
    </div><!-- /.row -->

    <div class="row">
      <div class="grid_11">
        <h3>Grid 11</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_1 omega">
        <h3>Grid 1</h3>
        Lorem ipsum
      </div>
    </div><!-- /.row -->
    
    <div class="row">
      <div class="grid_10">
        <h3>Grid 10</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_2 omega">
        <h3>Grid 2</h3>
        Lorem ipsum dolor sit amet, consectetur
      </div>
    </div><!-- /.row -->


     <div class="row">
      <div class="grid_9">
        <h3>Grid 9</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_3 omega">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias
      </div>
    </div><!-- /.row --> 

     
    <div class="row">
      <div class="grid_8">
        <h3>Grid 8</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_4 omega">
        <h3>Grid 4</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur
      </div>
    </div><!-- /.row --> 


    <div class="row">
      <div class="grid_7">
        <h3>Grid 7</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_5 omega">
        <h3>Grid 5</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio
      </div>
    </div><!-- /.row --> 



    <div class="row">
      <div class="grid_6">
        <h3>Grid 6</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_6 omega">
        <h3>Grid 6</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
    </div><!-- /.row -->


    <div class="row">
      <div class="grid_6">
        <h3>Grid 6</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
       <div class="grid_3">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_3 omega">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
    </div><!-- /.row -->

    
    <div class="row">
      <div class="grid_3">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_3">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_3">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_3 omega">
        <h3>Grid 3</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
    </div><!-- /.row -->

    

    <div class="row">
      <div class="grid_4">
        <h3>Grid 4</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_4">
        <h3>Grid 4</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
      <div class="grid_4 omega">
        <h3>Grid 4</h3>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid cum quasi nulla molestias accusamus aspernatur reiciendis qui optio tenetur modi repellendus distinctio dolore nesciunt. Repellat provident explicabo accusamus autem perspiciatis.
      </div>
    </div><!-- /.row -->
    


  </div><!-- /.wrapper -->


</body>
</html>

以上是关于html 响应式网格的主要内容,如果未能解决你的问题,请参考以下文章

html 响应式六角网格

html 响应式网格

Bootstrap_响应式网格系统

创建响应式布局的10款优秀网格工具集锦

Html/css:使用适合内容宽度的 figcaption 创建响应式图片库网格

响应式网格(栅格化)布局总结