fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>定制缩略图实例</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Example of thumbnails customized from fmpq.com"> <meta name="author" content=""> <!-- Le styles --> <link href="/jscss/bootstrap/v3/bootstrap.css" rel="stylesheet"> <link href="/jscss/bootstrap/v3/example-fixed-layout.css" rel="stylesheet"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="/images/bootstrap/favicon.ico"> <link rel="apple-touch-icon" href="/images/bootstrap/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="/images/bootstrap/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="/images/bootstrap/apple-touch-icon-114x114.png"> </head> <body> <div class="container"> <ul class="thumbnails"> <li class="span5"> <div class="thumbnail"> <img src="/images/bootstrap/shoes1.jpg" alt="product 1"> <div class="caption"> <h5>Product detail</h5> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p><a href="#" class="btn btn-success">Buy</a> <a href="#" class="btn btn-warning">Try</a></p> </div> </div> </li> <li class="span5"> <div class="thumbnail"> <img src="/images/bootstrap/shoes2.jpg" alt="product 2"> <div class="caption"> <h5>Product detail</h5> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <p><a href="#" class="btn btn-success">Buy</a> <a href="#" class="btn btn-warning">Try</a></p> </div> </div> </li> </ul> <hr> <footer> <p>© Company 2013</p> </footer> </div> <!-- /container --> <!-- Le javascript ================================================== --> <!-- 放置在文档的页面底部加快加载速度 --> <script src="/jscss/bootstrap/v3/jquery.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-transition.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-alert.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-modal.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-dropdown.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-scrollspy.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-tab.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-tooltip.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-popover.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-button.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-collapse.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-carousel.js"></script> <script src="/jscss/bootstrap/v3/bootstrap-typeahead.js"></script> </body> </html>
运行结果