Swipebox slide with html control and content instead of popup

大憨熊 提交于 2019-12-12 01:47:31

问题


I am using swipebox it is easy and useful.I want show first image with next-previous icon.When user click(or touch-swipe in mobile) next image slide will show next image.My needed design is here

as you can see in my design there is slide and also there is many other html control-content-div-buton......

but swipebox show pop up and it just show slide as below. This is not good for me because there is information-content-links and other html control in my page(design).Slide is just a part of my mobile web site page.So i need change slide full screen and pop

here is my view code

<script type="text/javascript">
$(document).ready(function () {
    $('.swipebox').swipebox();
    $('.swipebox:first').click();
     // simply faking a click on the selector which starts the slide

});

<div class="content">
    <div class="display-img" style="overflow: hidden; text-align: center;">

                foreach (var item in Model.Images.Take(8))
        {

                <a rel="gallery-1" href="@item.Url" class="swipebox" >
                <img src="@item.ThumbnailUrl" alt="image" style="width:22%;height:35%;">
            </a> 



        }
        <div class="specifications">
            @if (ViewBag.Culture == "tr")
            {
                <img src="~/Content/images/display_foot_bg.png" width="280" />

            }
            else
            {
                <img src="~/Content/images/display_foot_bg2.png" width="280" />
            }
        </div>

回答1:


I just tried venobox to display content with the image using inline; works perfect for me. http://lab.veno.it/venobox/



来源:https://stackoverflow.com/questions/29266309/swipebox-slide-with-html-control-and-content-instead-of-popup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!