阅读背景:

将“background-size:cover”应用于Twitter Bootstrap Carousel幻灯片

来源:互联网 

I am working with a basic Bootstrap Carousel with three slides. Before I implemented the slider, I had one static image via css background-image of its respective div. In my CSS, I was using background-size:cover, and really liked the way the image responded to different browser widths. Depending on the width of my image, I could get the important section of the image to always stay visibile and centered, while the extra width on either side was only visible on widescreen monitors as an added effect.I am working with a basic Bootstrap Carousel wi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: