【问题标题】:swipe carousel and cube display in jquery mobile [closed]在jquery mobile中滑动轮播和立方体显示[关闭]
【发布时间】:2013-01-29 04:27:38
【问题描述】:

我无法在 jquery mobile 的轮播中看到我的立方体.... 没有旋转木马,立方体动画效果很好....

工作代码 http://jsfiddle.net/SV8CM/2/embedded/result/

小提琴中的错误...无法正常工作 http://jsfiddle.net/yxhzU/5132/

如何解决?我的代码如下:

<ul id="carousel1" style="display: none;">
        <li>
            <div style="width: 100%; height: 100%; background-color:#381;">
                <div class="span5" style="margin-left: 97px; width: 493px;">
                    <div class="melonhtml5_gallery">
                        <div data-caption="&lt;a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' &gt;Create&lt;/a&gt; &lt;div&gt; &lt;a style='margin-left: 92px; font-size: 18px; color: grey;' &gt;View/Edit&lt;/a&gt; &lt;/div&gt; &lt;a style='margin-left: 92px; font-size: 18px; color: grey;' &gt;Labels&lt;/a&gt;" data-image="http://www.defie.co/designerImages/inventoryControl.png"></div>

                </div>
            </div>
        </li>
        <li>
            <div style="width: 100%; height: 100%; background-color:#837;">
               <div class="span5" style="margin-left: 65px; width: 493px;">
                    <div class="melonhtml5_gallery">
                        <div data-caption="" data-image="http://www.defie.co/designerImages/png/accPayable.png"></div>

                    </div>
                </div>
            </div>
        </li>
    </ul> 

jquery 代码如下

   (function($) {
        $("#carousel1").carousel();
        $("#carousel2").carousel({direction: "vertical"});
    })(jQuery);

【问题讨论】:

    标签: jquery css jquery-mobile jquery-plugins carousel


    【解决方案1】:

    至于第一个 &lt;li&gt; 缺少关闭 &lt;/div&gt;

    <li>
        <div style="width: 100%; height: 100%; background-color:#381;">
            <div class="span5" style="margin-left: 97px; width: 493px;">
                <div class="melonhtml5_gallery">
                    <div data-caption="&lt;a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' &gt;Create&lt;/a&gt; &lt;div&gt; &lt;a style='margin-left: 92px; font-size: 18px; color: grey;' &gt;View/Edit&lt;/a&gt; &lt;/div&gt; &lt;a style='margin-left: 92px; font-size: 18px; color: grey;' &gt;Labels&lt;/a&gt;" data-image="http://www.defie.co/designerImages/inventoryControl.png"></div>
                </div> <!-- here closing div was missing -->
            </div>
        </div>
    </li>
    

    【讨论】:

      猜你喜欢
      • 2012-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-22
      相关资源
      最近更新 更多