960网格-16列Jquery

Posted

tags:

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

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  4. <title>960 Grid System | 16-column Grid JQuery</title>
  5. <link rel="stylesheet" type="text/css" media="all" href="/css/reset-grid.css" />
  6. <link rel="stylesheet" type="text/css" media="all" href="/css/layout.css" />
  7. <link rel="stylesheet" type="text/css" media="all" href="/css/base.css" />
  8. <link rel="stylesheet" type="text/css" media="all" href="/css/nav.css" />
  9. <script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
  10. <script type="text/javascript" src="/js/jquery.kwicks-1.5.1.pack.js"></script>
  11. <script type="text/javascript" src="/js/application.js"></script>
  12. </head>
  13.  
  14.  
  15. <div class="container_16">
  16. <div class="grid_16">
  17. <h1 id="branding"><a href="/">960 Grid System</a></h1>
  18. </div>
  19. <div class="clear"></div>
  20.  
  21. <div class="grid_16">
  22. <ul class="nav main">
  23. <li><a href="#">Menu 1</a>
  24. <ul>
  25. <li><a href="#">Submenu 1</a></li>
  26. <li><a href="#">Submenu 2</a></li>
  27. </ul>
  28. </li>
  29. <li><a href="#">Menu 2</a>
  30. <ul>
  31. <li><a href="#">Submenu 1</a></li>
  32. <li><a href="#">Submenu 2</a></li>
  33. </ul>
  34. </li>
  35. <li><a href="#">Menu 3</a>
  36. <ul>
  37. <li><a href="#">Submenu 1</a></li>
  38. <li><a href="#">Submenu 2</a></li>
  39. </ul>
  40. </li>
  41. <li><a href="#">Menu 4</a>
  42. <ul>
  43. <li><a href="#">Submenu 1</a></li>
  44. <li><a href="#">Submenu 2</a></li>
  45. </ul>
  46. </li>
  47. <li class="secondary"><a href="#">Secondary Menu Item</a>
  48. <ul>
  49. <li><a href="#">Submenu 1</a></li>
  50. <li><a href="#">Submenu 2</a></li>
  51. </ul>
  52. </li>
  53. </ul>
  54. </div>
  55. <div class="clear"></div>
  56.  
  57. <div class="grid_16">
  58. <h2 id="page-heading">16 Column Grid JQuery</h2>
  59. </div>
  60. <div class="clear"></div>
  61.  
  62. <div class="grid_16">
  63. <div class="box">
  64. <h2>Standing on the shoulders of giants</h2>
  65. <div class="block">
  66. <p>This template is only possible due to the hard work of many people who contributions have made the Internet a usable and beautiful place. <a href="http://www.mubashariqbal.com">I</a> am pleased share my work, to help continue that trend.</p>
  67. </div>
  68. </div><!-- end .box -->
  69. </div>
  70. <div class="clear"></div>
  71.  
  72.  
  73. <div class="grid_16">
  74. <div class="box" id="kwick-box">
  75. <h2>Kwicks</h2>
  76. <div id="kwick">
  77. <ul class="kwicks">
  78. <li id="kwick1"><a class="kwick one" href="#"><span>One</span></a></li>
  79. <li id="kwick2"><a class="kwick two" href="#"><span>Two</span></a></li>
  80. <li id="kwick3"><a class="kwick three" href="#"><span>Three</span></a></li>
  81. <li id="kwick4"><a class="kwick four" href="#"><span>Four</span></a></li>
  82. </ul>
  83. </div>
  84. </div><!-- end .box -->
  85. </div>
  86. <div class="clear"></div>
  87.  
  88. <div class="grid_4">
  89. <div class="box">
  90. <h2><a href="#" id="toggle-paragraphs" class="hidden">Paragraphs</a></h2>
  91. <div class="block" id="paragraphs">
  92. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
  93. <p>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
  94. </div>
  95. </div><!-- end .box -->
  96. <div class="box">
  97. <h2><a href="#" id="toggle-ajax" class="hidden"><img src="img/ajax-loader.gif" id="loading" />Ajax Content</a></h2>
  98. <div class="block" id="ajax-content">
  99. Content loaded dynamically
  100. </div>
  101. </div><!-- end .box -->
  102. <div class="box menu">
  103. <h2><a href="#" id="toggle-section-menu" class="visible">Section Menu</a></h2>
  104. <div class="block" id="section-menu">
  105. <ul class="section menu">
  106. <li>
  107. <dt class="toggler">Menu 1</dt>
  108. <dd>
  109. <ul class="submenu">
  110. <li><a href="#">Submenu 1</a></li>
  111. <li><a href="#">Submenu 2</a></li>
  112. <li><a href="#" class="active">Submenu 3</a></li>
  113. <li><a href="#">Submenu 4</a></li>
  114. <li><a href="#">Submenu 5</a></li>
  115. </ul>
  116. </dd>
  117. </li>
  118. <li>
  119. <dt class="toggler">Menu 2</dt>
  120. <dd>
  121. <ul class="submenu">
  122. <li><a href="#">Submenu 1</a></li>
  123. <li><a href="#">Submenu 2</a></li>
  124. <li><a href="#" class="active">Submenu 3</a></li>
  125. <li><a href="#">Submenu 4</a></li>
  126. <li><a href="#">Submenu 5</a></li>
  127. </ul>
  128. </dd>
  129. </li>
  130. <li>
  131. <dt class="toggler">Menu 3</dt>
  132. <dd>
  133. <ul class="submenu">
  134. <li><a href="#">Submenu 1</a></li>
  135. <li><a href="#">Submenu 2</a></li>
  136. <li><a href="#" class="active">Submenu 3</a></li>
  137. <li><a href="#">Submenu 4</a></li>
  138. <li><a href="#">Submenu 5</a></li>
  139. </ul>
  140. </dd>
  141. </li>
  142. <li>
  143. <dt class="toggler">Menu 4</dt>
  144. <dd>
  145. <ul class="submenu">
  146. <li><a href="#">Submenu 1</a></li>
  147. <li><a href="#">Submenu 2</a></li>
  148. <li><a href="#" class="active">Submenu 3</a></li>
  149. <li><a href="#">Submenu 4</a></li>
  150. <li><a href="#">Submenu 5</a></li>
  151. </ul>
  152. </dd>
  153. </li>
  154. </ul>
  155. </div>
  156. </div><!-- end .box .menu -->
  157.  
  158. <div class="box">
  159. <h2><a href="#" id="toggle-list-items" class="visible">List Items</a></h2>
  160. <div class="block" id="list-items">
  161. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod. </p>
  162. <h5>A menu</h5>
  163. <ul class="menu">
  164. <li><a href="#">Item 1</a></li>
  165. <li><a href="#">Item 2</a></li>
  166. <li><a href="#">Item 3</a></li>
  167. </ul>
  168. <h5>An unordered list</h5>
  169. <ul>
  170. <li><a href="#">Item 1</a></li>
  171. <li><a href="#">Item 2</a></li>
  172. <li><a href="#">Item 3</a></li>
  173. </ul>
  174. <h5>An ordered list</h5>
  175. <ol>
  176. <li><a href="#">Item 1</a></li>
  177. <li><a href="#">Item 2</a></li>
  178. <li><a href="#">Item 3</a></li>
  179. </ol>
  180. </div>
  181. </div><!-- end .box -->
  182. </div><!-- end .grid_4 -->
  183.  
  184. <div class="grid_7">
  185. <div class="box">
  186. <h2><a href="#" id="toggle-accordian" class="visible">Accordian</a></h2>
  187. <div class="block" id="accordian-block">
  188. <div id="accordion">
  189. <dt class="toggler">Design Process</dt>
  190. <dd>
  191. <h4>The Value of Design</h4>
  192. <p>Design is based on the inspiration of past accomplishments. On that foundation, we can build upon those achievements to shape the future. Design is about life &mdash; past, present and future &mdash; and the learning process that happens between birth and death. It is about community and shared knowledge and experience. It is the passion to build on what we've learned to create something better.</p>
  193. </dd>
  194. <dt class="toggler">Design Influences</dt>
  195. <dd>
  196. <h4>About this Site</h4>
  197. <p>The words "design influences" can be understood as both a plural noun and as subject and verb. The plural noun speaks of those who have come before us and paved the way. The verb speaks of the responsibility of design to lead the way. By understanding where we have come from, we have a better idea of where we are going and, perhaps, where we should be heading.</p>
  198. </dd>
  199. <dt class="toggler">Inspiration</dt>
  200. <dd>
  201. <h4>Inspired by the Past</h4>
  202. <p>I have been inspired by the work of many who have pioneered advances in Web Standards, including
  203. <a href="http://www.31three.com/" title="www.31three.com">Jesse Bennett-Chamberlain</a>,
  204. <a href="http://www.stopdesign.com/" title="www.stopdesign.com">Douglas Bowman</a>,
  205. <a href="http://www.chaoticpattern.com/" title="www.chaoticpattern.com">Allen Chang</a>,
  206. <a href="http://www.stuffandnonsense.co.uk/" title="www.stuffandnonsense.co.uk">Andy Clarke</a>,
  207. <a href="http://www.hicksdesign.co.uk/" title="www.hicksdesign.co.uk">Jon Hicks</a>,
  208. <a href="http://www.shauninman.com/" title="www.shauninman.com">Shaun Inman</a>,
  209. <a href="http://www.cameronmoll.com/" title="www.cameronmoll.com">Cameron Moll</a>,
  210. <a href="http://veerle.duoh.com/" title="veerle.duoh.com">Veerle Pieters</a>,
  211. <a href="http://www.jasonsantamaria.com/" title="www.jasonsantamaria.com">Jason Santa Maria</a>,
  212. <a href="http://www.mezzoblue.com/" title="www.mezzoblue.com">Dave Shea</a>,
  213. <a href="http://www.thebignoob.com/" title="www.thebignoob.com">Ryan Sims,
  214. <a href="http://www.sonspring.com/" title="www.sonspring.com">Nathan Smith</a>, and
  215. <a href="http://www.zeldman.com/" title="www.zeldman.com">Jeffrey Zeldman</a>,
  216. to name a few. Thank you for inspiring <a href="http://www.domain7.com/WhoWeAre/StephenBau.html" title="Stephen Bau, Designer, Domain7">me</a> to give something back.</p>
  217. </dd>
  218. <dt class="toggler">Contribution</dt>
  219. <dd>
  220. <h4>Shaping the Future</h4>
  221. <p>The <a href="/fluid960gs/">Fluid 960 Grid System</a> templates have been built upon the work of Nathan Smith and his <a href="http://960.gs/">960 Grid System</a> using effects from the <a href="http://www.mootools.net/">Mootools</a> JavaScript library. The idea for building these templates was inspired by Andy Clarke, author of <a href="http://www.transcendingcss.com/">Transcending CSS</a>, who advocates a content-out approach to rapid interactive prototyping, crediting Jason Santa Maria with the <a href="http://www.jasonsantamaria.com/archive/2004/05/24/grey_box_method.php">grey box method</a>.</p>
  222. </dd>
  223. </div><!-- end #accordion -->
  224. </div><!-- end .block -->
  225. </div><!-- end .box -->
  226.  
  227. <div class="box">
  228. <h2><a href="#" id="toggle-blockquote" class="visible">Blockquote</a></h2>
  229. <div class="block" id="blockquote">
  230. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
  231. <p class="cite"><cite>John Smith</cite></p>
  232. </div>
  233. </div><!-- end .box -->
  234. <div class="box">
  235. <h2><a href="#" id="toggle-tables" class="visible">Tables</a></h2>
  236. <div class="block" id="tables">
  237. <tr>
  238. <th>Lorem ipsum</th>
  239. <td>Dolor sit</td>
  240. <td class="currency">$125.00</td>
  241. </tr>
  242. <tr>
  243. <th>Dolor sit</th>
  244. <td>Nostrud exerci</td>
  245. <td class="currency">$75.00</td>
  246. </tr>
  247. <tr>
  248. <th>Nostrud exerci</th>
  249. <td>Lorem ipsum</td>
  250. <td class="currency">$200.00</td>
  251. </tr>
  252. <tr>
  253. <th>Lorem ipsum</th>
  254. <td>Dolor sit</td>
  255. <td class="currency">$64.00</td>
  256. </tr>
  257. <tr>
  258. <th>Dolor sit</th>
  259. <td>Nostrud exerci</td>
  260. <td class="currency">$36.00</td>
  261. </tr>
  262. </table>
  263. <table summary="This table includes examples of as many table elements as possible">
  264. <caption>An example table</caption>
  265. <col class="colA">
  266. <col class="colB">
  267. <col class="colC">
  268. <tr>
  269. <th colspan="3" class="table-head">Table heading</th>
  270. </tr>
  271. <tr>
  272. <th>Column 1</th>
  273. <th>Column 2</th>
  274. <th class="currency">Column 3</th>
  275. </tr>
  276. </thead>
  277. <tr class="odd">
  278. <th>Lorem ipsum</th>
  279. <td>Dolor sit</td>
  280. <td class="currency">$125.00</td>
  281. </tr>
  282. <tr>
  283. <th>Dolor sit</th>
  284. <td>Nostrud exerci</td>
  285. <td class="currency">$75.00</td>
  286. </tr>
  287. <tr class="odd">
  288. <th>Nostrud exerci</th>
  289. <td>Lorem ipsum</td>
  290. <td class="currency">$200.00</td>
  291. </tr>
  292. <tr>
  293. <th>Lorem ipsum</th>
  294. <td>Dolor sit</td>
  295. <td class="currency">$64.00</td>
  296. </tr>
  297. <tr class="odd">
  298. <th>Dolor sit</th>
  299. <td>Nostrud exerci</td>
  300. <td class="currency">$36.00</td>
  301. </tr>
  302. </tbody>
  303. <tr>
  304. <th>Subtotal</th>
  305. <td></td>
  306. <th class="currency">$500.00</th>
  307. </tr>
  308. <tr class="total">
  309. <th>Total</th>
  310. <td></td>
  311. <th class="currency">$500.00</th>
  312. </tr>
  313. </tfoot>
  314. </table>
  315. </div><!-- end .block -->
  316. </div><!-- end .box -->
  317.  
  318. <div class="box">
  319. <h2><a href="#" id="toggle-forms" class="visible">Forms</a></h2>
  320. <div class="block" id="forms">
  321. <form action="confirm.html">
  322. <fieldset class="login">
  323. <legend>Login Information</legend>
  324. <input type="hidden" name="action" value="catview_register_submit" />
  325. <input type="hidden" name="nextaction" value="catview_view_cart" />
  326. <input type="hidden" name="nexttemplate" value="catview_goto_confirm.htm7" />
  327. <p><label>Username: </label><input type="text" name="User_Username" value="" /></p>
  328. <p><label>Password: </label><input type="password" name="User_Password" /></p>
  329. <p><label>Re-type Password: </label><input type="password" name="Password2" /></p>
  330. <input class="confirm button" type="submit" value="Confirm Availability" />
  331. <legend>Personal Information</legend>
  332. <p><label>First Name: </label><input type="text" name="User_First_Name" value="" /></p>
  333. <p><label>Last Name: </label><input type="text" name="User_Last_Name" value="" /></p>
  334. <p><label>Address: </label><input type="text" name="Reg_Address1" value="" /></p>
  335. <p><label>Address 2: </label><input type="text" name="Reg_Address2" value="" /></p>
  336. <p><label>City: </label><input type="text" name="Reg_City" value="" /></p>
  337. <p><label>State/Province: </label>
  338. <select name=Reg_State class='WebForm_select'>
  339. <option value="" >Select State/Province...</option> <option value="AL">Alabama </option>
  340. <option value="AK">Alaska </option>
  341. <option value="AB">Alberta </option>
  342. </select>
  343. </p>
  344. <p><label>Country: </label>
  345. <select name=Reg_Country>
  346. <option value="">Select Country...</option>
  347. <option value="Canada">Canada</option>
  348. <option value="United States">United States</option>
  349. </select>
  350. </p>
  351. <p><label>Zip/Postal Code: </label><input type="text" name="Reg_ZipCode" value="" /></p>
  352. <p><label>Phone Number: </label><input type="text" name="User_Phone" value="" /></p>
  353. <p><label>Email Address: </label><input type="text" name="Email" value="" /></p>
  354. <input type="submit" value="Register" class="register-button" />
  355. </form>
  356. </div><!-- end .block -->
  357. </div><!-- end .box -->
  358. </div><!-- end .grid_7 -->
  359. <div class="grid_5">
  360. <div class="box">
  361. <h2><a href="#" id="toggle-search" class="visible">Search</a></h2>
  362. <div class="block" id="search">
  363. <form method="get" action="/cgi/perlfect/search/search.pl" class="search">
  364. <p>
  365. <input name="p" value="1" type="hidden" />
  366. <input name="lang" value="en" type="hidden" />
  367. <input name="penalty" value="0" type="hidden" />
  368. <input class="search text" name="q" type="text" />
  369. <input class="search button" value="Search" type="submit" />
  370. </p>
  371. </form>
  372. </div><!-- end .block -->
  373. </div><!-- end .box -->
  374. <div class="box">
  375. <h2><a href="#" id="toggle-login-forms" class="visible">Login Forms</a></h2>
  376. <div class="block" id="login-forms">
  377. <form action="login.html">
  378. <fieldset class="login">
  379. <legend>Login</legend>
  380. <p class="notice">Login to complete your purchase.</p>
  381. <input type="hidden" name="action" value="catview_login" />
  382. <input type="hidden" name="nextaction" value="catview_view_cart" />
  383. <input type="hidden" name="nexttemplate" value="catview_goto_confirm.htm7" />
  384. <input type="hidden" name="CHG" value="1" />
  385. <p><label>Username: </label><input type="text" name="username" /></p>
  386. <p><label>Password: </label><input type="password" name="password" /></p>
  387. <input class="login button" type="submit" value="Login" />
  388. </form>
  389. <form action="register.html">
  390. <legend>Register</legend>
  391. <p>If you do not already have an account, please create a new account to register.</p>
  392. <input type="submit" value="Create Account" />
  393. </form>
  394. </div><!-- end .block -->
  395. </div><!-- end .box -->
  396.  
  397. <div class="box articles">
  398. <h2><a href="#" id="toggle-articles" class="visible">Articles</a></h2>
  399. <div class="block" id="articles">
  400. <div class="first article">
  401. <h3><a href="#">Article Heading</a></h3>
  402. <h4>Subheading</h4>
  403. <p class="meta">Vancouver, BC &mdash; Wednesday, 23 April 2008</p>
  404. <a href="#" class="image"><img src="img/photo_60x60.jpg" width="60" height="60" alt="photo"/></a>
  405. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. <a href="#">Visit site.</a></p>
  406. </div><!-- end .article -->
  407. <div class="article">
  408. <h3><a href="#">Article Heading</a></h3>
  409. <h4>Subheading</h4>
  410. <p class="meta">Vancouver, BC &mdash; Wednesday, 23 April 2008</p>
  411. <a href="#" class="image"><img src="img/photo_60x60.jpg" width="60" height="60" alt="photo"/></a>
  412. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. <a href="#">Visit site.</a></p>
  413. </div><!-- end .article -->
  414. <div class="article">
  415. <h1>Heading 1</h1>
  416. <h2>Heading 2</h2>
  417. <h3>Heading 3</h3>
  418. <h4>Heading 4</h4>
  419. <p class="meta">Vancouver, BC &mdash; Wednesday, 23 April 2008</p>
  420. <a href="#" class="image"><img src="img/photo_60x60.jpg" width="60" height="60" alt="photo"/></a>
  421. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. <a href="#">Visit site.</a></p>
  422. <h5>Heading 5</h5>
  423. <p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
  424. <h6>Heading 6</h6>
  425. <p>Epsum factorial non deposit quid pro quo hic escorol. Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum.</p>
  426. </div><!-- end .article -->
  427. </div><!-- end .block -->
  428. </div><!-- end .box -->
  429. </div><!-- end .grid_7 -->
  430. <div class="clear"></div>
  431.  
  432. <div class="grid_16" id="site_info">
  433. <div class="box">
  434. <p>&copy; 2008 Legal and Copyright Information</p>
  435. </div><!-- end .box -->
  436. </div><!-- end .grid_16 -->
  437. <div class="clear"></div>
  438.  
  439. </div><!-- end .container_16 -->
  440.  
  441. </body>
  442. </html>

以上是关于960网格-16列Jquery的主要内容,如果未能解决你的问题,请参考以下文章

jQuery 对话框和 960 网格系统

CSS CSS 960网格(24列)

CSS CSS 960网格(24列)

CSS 1KB网格 - 12列,960px

CSS CSS 960网格(12,16 Col)

CSS CSS 960网格(12,16 Col)