owl carousel响应式控制图片大小列表滑动切换



152 604 202



特效描述:owl carousel 响应式控 制图片大小列表 滑动切换,owl carousel响应式图片列表滑动切换。

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/owl.carousel.min.css"/>
<link rel="stylesheet" type="text/css" href="css/reset.css">

2. 引入JS

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/owl.carousel.min.js"></script>

3. HTML代码

<div class="demo">
	<div class="container">
		<div class="row">
			<div class="col-md-12" style="padding: 1em 0;">
				<div id="news-slider" class="owl-carousel">
					<div class="post-slide">
						<div class="post-img">
							<a href="#"><img src="img/img-1.jpg" alt=""></a>
						</div>
						<div class="post-content">
							<h3 class="post-title"><a href="#">Latest News Post</a></h3>
							<p class="post-description">
								Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec elementum mauris. Praesent vehicula gravida dolor, ac efficitur sem sagittis.
							</p>
							<ul class="post-bar">
								<li><i class="fa fa-calendar"></i> 2016-7-28</li>
								<li>
									<i class="fa fa-folder"></i>
									<a href="#">Mockup</a>
									<a href="#">Graphics</a>
									<a href="#">Flayers</a>
								</li>
							</ul>
							<a href="#" class="read-more">read more</a>
						</div>
					</div>
					<div class="post-slide">
						<div class="post-img">
							<a href="#"><img src="img/img-2.jpg" alt=""></a>
						</div>
						<div class="post-content">
							<h3 class="post-title"><a href="#">Latest News Post</a></h3>
							<p class="post-description">
								Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec elementum mauris. Praesent vehicula gravida dolor, ac efficitur sem sagittis.
							</p>
							<ul class="post-bar">
								<li><i class="fa fa-calendar"></i> 2016-7-29</li>
								<li>
									<i class="fa fa-folder"></i>
									<a href="#">Mockup</a>
									<a href="#">Graphics</a>
									<a href="#">Flayers</a>
								</li>
							</ul>
							<a href="#" class="read-more">read more</a>
						</div>
					</div>
					<div class="post-slide">
						<div class="post-img">
							<a href="#"><img src="img/img-3.jpg" alt=""></a>
						</div>
						<div class="post-content">
							<h3 class="post-title"><a href="#">Latest News Post</a></h3>
							<p class="post-description">
								Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec elementum mauris. Praesent vehicula gravida dolor, ac efficitur sem sagittis.
							</p>
							<ul class="post-bar">
								<li><i class="fa fa-calendar"></i> 2016-7-29</li>
								<li>
									<i class="fa fa-folder"></i>
									<a href="#">Mockup</a>
									<a href="#">Graphics</a>
									<a href="#">Flayers</a>
								</li>
							</ul>
							<a href="#" class="read-more">read more</a>
						</div>
					</div>
					<div class="post-slide">
						<div class="post-img">
							<a href="#"><img src="img/img-4.jpg" alt=""></a>
						</div>
						<div class="post-content">
							<h3 class="post-title"><a href="#">Latest News Post</a></h3>
							<p class="post-description">
								Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec elementum mauris. Praesent vehicula gravida dolor, ac efficitur sem sagittis.
							</p>
							<ul class="post-bar">
								<li><i class="fa fa-calendar"></i> 2016-7-29</li>
								<li>
									<i class="fa fa-folder"></i>
									<a href="#">Mockup</a>
									<a href="#">Graphics</a>
									<a href="#">Flayers</a>
								</li>
							</ul>
							<a href="#" class="read-more">read more</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
		$("#news-slider").owlCarousel({
			items:3,
			itemsDesktop:[1199,2],
			itemsDesktopSmall:[980,2],
			itemsMobile:[600,1],
			pagination:false,
			navigationText:false,
			autoPlay:true
		});
	});
</script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 滑动选项卡 滑动切换 滚动切换 滚动条切换 拖动 拖拽 拖动插件 拖拽插件 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 滑动星星打分 放大缩小 变大变小 放大 缩小 变大 变小 缩放 缩放切换 其他 图片拖动 图片拖拽 图片放大缩小 图片缩放 图片大小 图片放大 图片缩小 图片变大 图片变小 图片滑动 图片滑块 图片切换 图片选项卡 图标选项卡 文字切换 文字选项卡 鼠标滑过 鼠标悬停 跟随鼠标移动

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到