跳至主要內容

六边形网格布局

白日梦想家yy...大约 6 分钟

六边形网格布局

HTML
<ul id="hexGrid">  
      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/1.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/2.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/3.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/4.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/5.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/6.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/7.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/8.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/1.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/2.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/3.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/4.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/5.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/6.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/7.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/8.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/1.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/2.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/3.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/4.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/5.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/6.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/7.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/8.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/1.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/2.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/3.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/4.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/5.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/6.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/7.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li>      <li class="hex">  
         <a class="hexIn" href="#">  
            <img src="img/8.jpg" alt="" />  
            <h1>This is a title</h1>  
            <p>Some sample text about the article this hexagon leads to</p>  
         </a>      </li></ul>
上次编辑于:
贡献者: mygit