25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

94 lines
3.9 KiB

  1. <div class="bs-docs-section">
  2. <h1 id="thumbnails" class="page-header">Thumbnails</h1>
  3. <p class="lead">Extend Bootstrap's <a href="../css/#grid">grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p>
  4. <h3 id="thumbnails-default">Default example</h3>
  5. <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
  6. <div class="bs-example">
  7. <div class="row">
  8. <div class="col-xs-6 col-md-3">
  9. <a href="#" class="thumbnail">
  10. <img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
  11. </a>
  12. </div>
  13. <div class="col-xs-6 col-md-3">
  14. <a href="#" class="thumbnail">
  15. <img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
  16. </a>
  17. </div>
  18. <div class="col-xs-6 col-md-3">
  19. <a href="#" class="thumbnail">
  20. <img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
  21. </a>
  22. </div>
  23. <div class="col-xs-6 col-md-3">
  24. <a href="#" class="thumbnail">
  25. <img data-src="holder.js/100%x180" alt="Generic placeholder thumbnail">
  26. </a>
  27. </div>
  28. </div>
  29. </div><!-- /.bs-example -->
  30. {% highlight html %}
  31. <div class="row">
  32. <div class="col-xs-6 col-md-3">
  33. <a href="#" class="thumbnail">
  34. <img data-src="holder.js/100%x180" alt="...">
  35. </a>
  36. </div>
  37. ...
  38. </div>
  39. {% endhighlight %}
  40. <h3 id="thumbnails-custom-content">Custom content</h3>
  41. <p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
  42. <div class="bs-example">
  43. <div class="row">
  44. <div class="col-sm-6 col-md-4">
  45. <div class="thumbnail">
  46. <img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
  47. <div class="caption">
  48. <h3>Thumbnail label</h3>
  49. <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  50. <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="col-sm-6 col-md-4">
  55. <div class="thumbnail">
  56. <img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
  57. <div class="caption">
  58. <h3>Thumbnail label</h3>
  59. <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  60. <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-sm-6 col-md-4">
  65. <div class="thumbnail">
  66. <img data-src="holder.js/100%x200" alt="Generic placeholder thumbnail">
  67. <div class="caption">
  68. <h3>Thumbnail label</h3>
  69. <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  70. <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div><!-- /.bs-example -->
  76. {% highlight html %}
  77. <div class="row">
  78. <div class="col-sm-6 col-md-4">
  79. <div class="thumbnail">
  80. <img data-src="holder.js/300x300" alt="...">
  81. <div class="caption">
  82. <h3>Thumbnail label</h3>
  83. <p>...</p>
  84. <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. {% endhighlight %}
  90. </div>