我做什么用引导旋转木马是使网站...
<div id = "myCarousel" class = "carousel slide">
<div class = "carousel-inner">
<!--each slide goes here-->
<div class = "item active">
<img src = "your image here..." class = "img-responsive">
</div><!--end itemactive-->
<div class = "item">
<img src = "your image here..." class = "img-responsive">
</div><!--end itemactive-->
<!--etc-->
</div><!--end carousel-inner-->
</div><!--end carouselslide-->
然后在CSS,我会
#myCarousel
{
background-image:url(your background image path here);
}
#myCarousel.carousel-inner
{
width: 80%; /*carousel width size here - my example will use 80%, if you want the carousel to fill entire screen, then just remove this width element.*/
margin-left: auto;
margin-right: auto;
/*These two margins are to center the carousel if you set a smaller width. :) */
}
我在使用的bootstrap.min.css办法。
您是否在Google搜索“响应旋转木马”? – 2012-08-08 18:24:18
是的,传送带响应迅速。即时通讯只是问什么是最好的技术,让图像上的旋转木马在调整响应时调整大小。例如一张笔记本电脑的图片,在这种图片的'笔记本电脑屏幕'中有一个旋转木马。基于@media查询来响应调整大小 – clazzy 2012-08-08 18:44:50