浏览代码

Fix width of img

> Images in Bootstrap 3 can be made responsive-friendly via the addition
> of the .img-responsive class. This applies max-width: 100%; and
> height: auto; to the image so that it scales nicely to the parent
> element.

http://getbootstrap.com/css/#images
Talha Mansoor 10 年之前
父节点
当前提交
1437cb7e3b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      static/css/elegant.css

+ 4 - 0
static/css/elegant.css

@@ -27,6 +27,10 @@ ul
 {
     padding-left: 0px;
 }
+img {
+    height: auto;
+    max-width: 100%;
+}
 /* site title */
 .site-name {
     font-family: 'Monaco', 'Inconsolata', 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, Monospace;