- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
i have created this my slider with jssor slider on full desktop width and on mobile view its working fine but when i minimizing it below 1200px its adding the scroll bar to the window and all the content overflow to the player body. and as the width of the player is defined into the jquery code can i customize it according to media queries ?
我正在使用 bootstrap 创建网站,这个 jssor player caraousel 放在 bootstrap nav-tabs 中.. 请告诉如何调整播放器,使其响应浏览器的大小调整,我已经编写了所有播放器的 html css 和 jquery,请告诉我在哪里修复它。
<html>
<head>
<style>
.shop-prod-block {margin: 30px 0 ;}
.shop-prod-block .product-gallery-item {padding: 15px 0; text-align: center; border: solid 1px black; }
.shop-prod-block .product-gallery-item .product-price ul li.addToCart{padding: 4px; background: rgb(102,102,102); border-radius: 2px; width: 90%; text-align: center; margin: auto;}
.shop-prod-block .product-gallery-item .product-price ul li.addToCart.addToCart a{color: white}
.shop-prod-block .product-gallery-item .product-title{height: 30px;}
.shop-prod-block .product-gallery-item .product-price{padding-right: 20px}
.shop-prod-block .product-gallery-item .selling-product{padding: 5px 0; border-right: solid 1px gray; height: 120px; margin-top: 10px;}
.shop-prod-block .product-gallery-item .product-price .strikethrough-price{color: orange}
.shop-prod-block .product-gallery-item .product-price ul li{display: inline-block; list-style: none; padding-left: 5px; }
.shop-prod-block .product-gallery-item .product-price ul li del{font-size: 12px; }
.cust-nav-tabs{background: rgb(25,58,89); font-size: 16px; font-weight: normal; position: relative; height: 44px;}
.cust-tab-content{background: white; min-height: 100px;}
</style>
</head>
<body>
<div id="slider2_container"
style="position: relative; top: 0px; left: 0px; width: 809px; height: 250px; overflow: hidden;">
<!-- Loading Screen -->
<div u="loading"
style="position: absolute; top: 0px; left: 0px;">
<div
style="filter: alpha(opacity = 70); opacity: 0.7; position: absolute; display: block; background-color: #000; top: 0px; left: 0px; width: 100%; height: 100%;">
</div>
<div
style="position: absolute; display: block; background: url(../img/loading.gif) no-repeat center center; top: 0px; left: 0px; width: 100%; height: 100%;">
</div>
</div>
<!-- Slides Container -->
<div u="slides"
style="cursor: move; position: absolute; left: 0px; top: 0px; width: 809px; height: 250px; overflow: hidden;">
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod1.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Cosco Football</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod2.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">1200.00</li>
<li class="strikethrough-price"><del><i class="fa fa-inr"></i>1500</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Yonex B Shoes Shb 01 Mx Badminton</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod3.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">7720.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>9650
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
<div class="product-gallery-item">
<div class="product-title">Sports Shoe</div>
<div class="selling-product">
<div class="product-image">
<img alt="" src="images/products/prod4.png">
</div>
</div>
<div class="product-price">
<ul>
<li class="currency"><i class="fa fa-inr"></i></li>
<li class="price-gallery-product">680.00</li>
<li class="strikethrough-price"><del>
<i class="fa fa-inr"></i>750
</del></li>
</ul>
<ul>
<li class="addToCart"><a href="#"><i class="fa fa-shopping-cart"> | </i>Add
to Cart</a></li>
</ul>
</div>
</div>
</div>
<!-- Arrow Left -->
<span u="arrowleft" class="jssora03l" style="width: 25px; height: 55px; top: 123px; left: 0;">
</span>
<!-- Arrow Right -->
<span u="arrowright" class="jssora03r" style="width: 25px; height: 55px; top: 123px; right: 0">
</span>
</div>
<!-- javascript for the jssor slider and support file -->
<script type="text/javascript"
src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript"
src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="js/jssor.js"></script>
<script type="text/javascript" src="js/jssor.slider.js"></script>
<script>
jssor_slider1_starter = function (containerId) {
var options = {
$AutoPlay: true, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
$AutoPlaySteps: 4, //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1
$AutoPlayInterval: 4000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
$PauseOnHover: 1, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
$ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false
$SlideDuration: 160, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
$MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20
$SlideWidth: 218.75, //[Optional] Width of every slide in pixels, default value is width of 'slides' container
//$SlideHeight: 150, //[Optional] Height of every slide in pixels, default value is height of 'slides' container
$SlideSpacing: 3, //[Optional] Space between each slide in pixels, default value is 0
$DisplayPieces: 4, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
$ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
$UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc).
$PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
$DragOrientation: 1, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance
$ChanceToShow: 1, //[Required] 0 Never, 1 Mouse Over, 2 Always
$AutoCenter: 2, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
$Steps: 4 //[Optional] Steps to go for each navigation request, default value is 1
}
};
var jssor_slider1 = new $JssorSlider$(containerId, options);
//responsive code begin
//you can remove responsive code if you don't want the slider scales while window resizes
function ScaleSlider() {
var bodyWidth = document.body.clientWidth;
if (bodyWidth)
jssor_slider1.$ScaleWidth(Math.min(bodyWidth, 875));
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$Jssor$.$AddEvent(window, "load", ScaleSlider);
if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|IEMobile)/)) {
$Jssor$.$AddEvent(window, "resize", $Jssor$.$WindowResizeFilter(window, ScaleSlider));
}
//if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) {
// $Jssor$.$AddEvent(window, "orientationchange", ScaleSlider);
//}
////responsive code end
};
</script>
<script>
jssor_slider1_starter('slider2_container');
</script>
</body>
</html>
最佳答案
请使用以下代码将 slider 缩放到全宽。
//responsive code begin
//you can remove responsive code if you don't want the slider scales while window resizes
function ScaleSlider() {
var bodyWidth = document.body.clientWidth;
if (bodyWidth)
jssor_slider1.$ScaleWidth(Math.min(bodyWidth, 1920));
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|IEMobile)/)) {
$(window).bind('resize', ScaleSlider);
}
//if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) {
// $(window).bind("orientationchange", ScaleSlider);
//}
//responsive code end
关于jquery - jssor slider 问题 - 最小化低于 1200px 的窗口时添加滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26581991/
我创建了一个用户可以添加测试的字段。这一切运行顺利我只希望当用户点击(添加另一个测试)然后上一个(添加另一个测试)删除并且这个显示在新字段中。 所有运行良好的唯一问题是点击(添加另一个字段)之前添加另
String[] option = {"Adlawan", "Angeles", "Arreza", "Benenoso", "Bermas", "Brebant
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我正在努力将 jQuery 滚动功能添加到 nav-tab (Bootstrap 3)。我希望用户能够选择他们想要的选项卡,并在选项卡内容中有一个可以平滑滚动到 anchor 的链接。这是我的代码,可
我正在尝试在用户登录后再添加 2 个 ui 选项卡。首先,我尝试做一个之后。 $('#slideshow').tabs('remove', '4'); $("#slideshow ul li:last
我有一个包含选择元素的表单,我想通过选择添加和删除其中一些元素。这是html代码(这里也有jsfiddle http://jsfiddle.net/txhajy2w/):
正在写这个: view.backgroundColor = UIColor.white.withAlphaComponent(0.9) 等同于: view.backgroundColor = UICo
好的,如果其中有任何信息,我想将这些列添加到一起。所以说我有 账户 1 2 3 . 有 4 个帐户空间,但只有 3 个帐户。我如何创建 java 脚本来添加它。 最佳答案 Live Example H
我想知道是否有一种有效的预制算法来确定一组数字的和/差是否可以等于不同的数字。示例: 5、8、10、2,使用 + 或 - 等于 9。5 - 8 = -3 + 10 = 7 + 2 = 9 如果有一个预
我似乎有一个卡住的 git repo。它卡在所有基本的添加、提交命令上,git push 返回所有内容为最新的。 从其他帖子我已经完成了 git gc 和 git fsck/ 我认为基本的调试步骤是
我的 Oracle SQL 查询如下- Q1- select hca.account_number, hca.attribute3, SUM(rcl.extended_amou
我正在阅读 http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingG
我正在尝试添加一个“加载更多”按钮并限制下面的结果,这样投资组合页面中就不会同时加载 1000 个内容,如下所示:http://typesetdesign.com/portfolio/ 我对 PHP
我遇到这个问题,我添加了 8 个文本框,它工作正常,但是当我添加更多文本框(如 16 个文本框)时,它不会添加最后一个文本框。有人遇到过这个问题吗?提前致谢。 Live Link: JAVASCRIP
add/remove clone first row default not delete 添加/删除克隆第一行默认不删除&并获取正确的SrNo(例如:添加3行并在看到问题后删除SrNo.2)
我编码this ,但删除按钮不起作用。我在控制台中没有任何错误.. var counter = 0; var dataList = document.getElementById('materi
我有一个类似数组的对象: [1:数组[10]、2:数组[2]、3:数组[2]、4:数组[2]、5:数组[3]、6:数组[1]] 我正在尝试删除前两个元素,执行一些操作,然后将它们再次插入到同一位置。
使用的 Delphi 版本:2007 你好, 我有一个 Tecord 数组 TInfo = Record Name : String; Price : Integer; end; var Info
我使用了基本的 gridster 代码,然后我声明了通过按钮添加和删除小部件的函数它工作正常但是当我将调整大小功能添加到上面的代码中时,它都不起作用(我的意思是调整大小,添加和删除小部件) 我的js代
title 323 323 323 title 323 323 323 title 323 323 323 JS $(document).keydown(function(e){
我是一名优秀的程序员,十分优秀!