Twitter Bootstrap: Have carousel images full width and height

前端 未结 6 1325
日久生厌
日久生厌 2020-12-30 01:31

this seems as a trivial question but after a couple of hours fiddling with the Twitter Bootstrap carousel in their example (http://twitter.github.io/bootstrap/examples/carou

6条回答
  •  萌比男神i
    2020-12-30 02:09

    You can simply change their css to this but it will cause your image to crop of what doesn't fit:

    .carousel-inner > .item > img {
       position: absolute;
       top: 0;
       left: 0;
       min-width: 100%;
       min-height: 500px; /* <--- Change this line to min-height */
     }
    

提交回复
热议问题