uikit与bootstrap幻灯片效果对比代码
代码语言:html
所属分类:幻灯片
代码描述:uikit与bootstrap幻灯片效果对比代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/uikit.min.css"> </head> <body> <div class="uk-section uk-section-default"> <div class="uk-container"> <h1>UIkit vs. Bootstrap: A comparison</h1> <div class="uk-child-width-1-2" uk-grid> <div> <h3>UIkit Slideshow</h3> <div class="uk-position-relative uk-visible-toggle uk-light" uk-slideshow="ratio: 3:2; autoplay: true; autoplay-interval: 5000"> <ul class="uk-slideshow-items"> <li> <img src="//repo.bfw.wiki/bfwrepo/image/5e62ef20b92ee.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="" uk-cover> </li> <li> <img src="//repo.bfw.wiki/bfwrepo/image/5e62ef60656fd.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="" uk-cover> </li> <li> <img src="//repo.bfw.wiki/bfwrepo/image/5e62ef82c83ea.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="" uk-cover> </li> </ul> <a class="uk-position-center-left uk-position-small uk-hidden-hover" href="#" uk-slidenav-previous uk-slideshow-item="previous"></a> <a class="uk-position-center-right uk-position-small uk-hidden-hover" href="#" uk-slidenav-next uk-slideshow-item="next"></a> </div> </div> <div> <h3>Bootstrap Carousel</h3> <div id="carouselSlideControls" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="//repo.bfw.wiki/bfwrepo/image/5e62ef20b92ee.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="//repo.bfw.wiki/bfwrepo/image/5e62ef60656fd.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="//repo.bfw.wiki/bfwrepo/image/5e62ef82c83ea.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_200,/quality,q_90" alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselSlideControls" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselSlideControls" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0