0
A
回答
0
您提供的是WordPress主題的鏈接,我盡我所能複製這種風格並反映在引導代碼中。最後我通過使用css和jQuery的組合成功。 下面是我對同樣風格的代碼。
請注意,我已經使用了2個css文件,您還需要包含這些文件才能完美地運行傳送帶,上面給出的鏈接爲!DOCTYPE Html。其餘所有文件都是CDN所以你不用擔心它們。
jQuery的片段
$(".home-solutions-nav-left").click(function() {
$(".home-solution-items").animate({
left: "-=250px"
},
10, function() {
/* stuff to do after animation is complete */
var length = parseInt($(".home-solution-items").css('left'));
if (length < -1250) {
resetLeft();
};
});
});
function resetLeft() {
$(".home-solution-items").css('left', '0px');
}
$(".home-solutions-nav-right").click(function() {
$(".home-solution-items").animate({
left: "+=250px"
},
10, function() {
/* stuff to do after animation is complete */
var length1 = parseInt($(".home-solution-items").css('left'));
if (length1 >= 0) {
resetRight();
};
});
});
function resetRight() {
$(".home-solution-items").css('left', '-1500px');
}
.home-solution-items {
left: 0px;
}
<link href="https://www.crowdcontent.com/wp-content/themes/crowdcontent/css/services-nav.css" rel="stylesheet" />
<link href="https://www.crowdcontent.com/wp-content/themes/crowdcontent/css/home-solutions.css" rel="stylesheet" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>TechGenium</title>
<!-- Font-Awesome CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<link rel="stylesheet" href="css/services-nav.css">
<link rel="stylesheet" href="css/home-solutions.css">
</head>
<body>
<section class="home-solutions" id="home-products">
<div class="home-solutions-nav-left"></div>
<div class="container home-solutions-container">
<div class="home-solution-items" style="width:2500px;left:0px;">
<ul id="menu-services-nav-with-icons" class="menu">
<div id="menu-item-405" class="home-solution-item cct-service-nav-item blog-posts menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-wordpress"></i>
<span>Blog Posts</span>
</strong>
</a>
</div>
<div id="menu-item-406" class="home-solution-item cct-service-nav-item product-description menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-shopping-cart"></i>
<span>Product Description</span>
</strong>
</a>
</div>
<div id="menu-item-464" class="home-solution-item cct-service-nav-item tweets menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-twitter"></i>
<span>Tweets</span>
</strong>
</a>
</div>
<div id="menu-item-463" class="home-solution-item cct-service-nav-item facebook-posts menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-facebook-square"></i>
<span>Facebook Posts</span>
</strong>
</a>
</div>
<div id="menu-item-451" class="home-solution-item cct-service-nav-item metadata menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-search"></i>
<span>Metadata</span>
</strong>
</a>
</div>
<div id="menu-item-407" class="home-solution-item cct-service-nav-item website-content menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-sitemap"></i>
<span>Website Content</span>
</strong>
</a>
</div>
<div id="menu-item-408" class="home-solution-item cct-service-nav-item ebooks menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-tablet"></i>
<span>eBooks</span>
</strong>
</a>
</div>
<div id="menu-item-402" class="home-solution-item cct-service-nav-item white-papers menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-file-o"></i>
<span>White Papers</span>
</strong>
</a>
</div>
<div id="menu-item-401" class="home-solution-item cct-service-nav-item press-release menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-bullhorn"></i>
<span>Press Releases</span>
</strong>
</a>
</div>
<div id="menu-item-403" class="home-solution-item cct-service-nav-item newsletters menu-item menu-item-type-post_type menu-item-object-page">
<a href="http://www.techgenium.in/blogs">
<strong>
<i class="_mi _before fa fa-newspaper-o"></i>
<span>Newsletters</span>
</strong>
</a>
</div>
</ul>
</div>
</div>
<div class="home-solutions-nav-right"></div>
</section>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
</body>
</html>
0
不知道你是如何引導熟悉,但你基本上需要:
該文檔非常簡單,如果你想自定義外觀,你可以簡單地在你自己的custom.css文件中覆蓋默認的CSS(確保在默認的引導程序內包含它)。
您還可以找到它在http://getbootstrap.com/examples/carousel/
一個完整的示例該示例的源代碼應該是在引導源代碼(文檔/實例)
相關問題
- 1. 水平臺階旋轉木馬
- 2. 水平滾動旋轉木馬
- 3. 旋轉木馬共享行 - 水平
- 4. 如何在android中創建水平旋轉木馬視圖?
- 5. WPF平面旋轉木馬
- 6. 旋轉木馬內的旋轉木馬
- 7. 引導旋轉木馬:旋轉木馬
- 8. 如何讓旋轉木馬滾動旋轉木馬Bootstrap
- 9. 旋轉木馬
- 10. 如何旋轉木馬
- 11. 圖片庫旋轉木馬
- 12. Famo.us圖像旋轉木馬
- 13. 旋轉木馬縮略圖,添加類到下一個旋轉木馬旋轉
- 14. 如何使不斷旋轉木馬幻燈片與貓頭鷹旋轉木馬
- 15. 旋轉木馬標題未顯示在全寬標題旋轉木馬上
- 16. 使Android旋轉木馬自動旋轉
- 17. 在中心水平對齊旋轉木馬控制?
- 18. 水平對齊項目滑動旋轉木馬
- 19. Twitter Bootstrap旋轉木馬共享一個水平行
- 20. 旋轉木馬像用CSS,溢出-x(僅水平)
- 21. 旋轉木馬博
- 22. jquery旋轉木馬
- 23. Papervision旋轉木馬
- 24. Bootstrap旋轉木馬
- 25. JavaScript旋轉木馬
- 26. iPhone - 旋轉木馬
- 27. Bootstrap旋轉木馬控制旋轉木馬之外
- 28. 父級旋轉木馬裏面的兒童旋轉木馬js
- 29. 旋轉木馬 - 將不同頁面添加到旋轉木馬
- 30. 如何修改jQuery旋轉木馬以顯示垂直而不是水平
我有點自舉新的,我知道,我想用傳送帶,但我不知道如何來定製它,這樣我就可以把在同一視圖中的多個圖形符號,就像我包含的例子一樣,給我一個鏈接到紀錄片並不完全是我期待的 –