我在我的網站中有一個camera.js滑塊,我替換爲Flexslider。我這樣做是因爲我無法使camera.js滑塊可點擊,我想擺脫'點擊此處'按鈕。現在我有我的網站上安裝的flexslider我想帶回兩個橫幅,哪裏在我的camera.js滑塊旁邊的我的網站,但我不明白它的工作...如何在Magento主頁旁邊的flexslider中添加兩個橫幅?
這是我的主頁,因爲你可以看到橫幅不顯示在滑塊上的權利,但他們表現出在錯誤的地方:
我想有兩個橫幅在尺寸381 X 219在滑塊的右側,一個以上另一個。
的代碼如下:
<div class="container">
<div class="row">
<div class="span12">
<script type="text/javascript">// <![CDATA[
jQuery.noConflict();
{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="25"}}
</script>
<ul class="banner-block-right">
<li><a href="{{store url='nieuwe-producten'}}"> <img src="{{skin url='images/media/banners-8.png'}}" alt="" /> </a></li>
<li><a href="{{store url='klantenservice'}}"> <img src="{{skin url='images/media/banners-7.png'}}" alt="" /> </a></li>
</ul>
</div>
</div>
</div>
只是爲了clearify:
- 我使用的代碼:腳本類型= 「文本/ JavaScript的」> //等
因爲我在導航欄中遇到問題,所以當我將新滑塊插入時,它不再工作。
- 我把滑塊放在小部件中,只是因爲我認爲這會更容易。
所以我的問題是,在代碼中必須做些什麼調整才能在flexslider旁邊放置兩個小橫幅?
Btw。當我使用該腳本來讓我的導航欄工作時,默認的magento定價佈局又回來了,就像是讓導航欄工作或以正確的佈局獲取magento定價。我選擇導航欄哈哈,有人知道這個問題的解決辦法嗎?
編輯:flexslider
/*
* jQuery FlexSlider v2.0
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;}
/* FlexSlider Necessary Styles
*********************************/
.flexslider {max-width: 700px; margin: -20; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
display: block;
max-width: 100%; height: auto; margin: - auto;
}
我試圖清除樣式,但我沒有得到它的工作... – JLS911
我用flexslider的CSS代碼更新了原始文章,滑塊的最大寬度應該是正確的,它是700px。橫幅塊有一個float:right,rule。 – JLS911
嘗試賦予.flexslider類float:left; – Ron