- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
没错,我真的很感激这里的一些帮助。这段代码超出了我的理解范围网站基本上是976px; slider 最多适合这个(如果我扩展站点大小, slider 将保持在这个 976px。)在此之下的任何东西都可以正常工作。 (扩展到移动设备)
我想增加它占用的高度,我也想让它的宽度始终是用户屏幕的 100%。
调用 slider 的索引页
{% include 'slider' %}
slider .液体
{% if settings.slider_home_enable %}
<div class="flexslider" id="heroSlider" >
<ul class="slides">
{% for i in (1..6) %}
{% capture slide %}slide_{{ i }}{% endcapture %}
{% capture slide_link %}slide_{{ i }}_link{% endcapture %}
{% capture slide_img %}slide_{{ i }}.jpg{% endcapture %}
{% capture slide_img_alt %}slide_{{ i }}_alt{% endcapture %}
{% capture slide_img_caption %}slide_{{ i }}_caption{% endcapture %}
{% if settings[slide] %}
<li>
<a href="{{ settings[slide_link] }}" class="slide-link">
<img src="{{ slide_img | asset_url }}" alt="{{ settings[slide_img_alt] }}">
{% unless settings[slide_img_caption] == blank %}
<p class="h3 flex-caption small--hide">{{ settings[slide_img_caption] }}</p>
{% endunless %}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
样式表
/*============================================================================
#FlexSlider
- jQuery FlexSlider v2.2.0 | http://www.woothemes.com/flexslider/
- Contributing author: Tyler Smith (@mbmufffin)
==============================================================================*/
.flexslider {
margin: 0 0 $gutter;
padding: 0;
}
.flexslider li { margin: 0; }
.flexslider .slides > li {
display: none; /* Hide the slides before the JS is loaded. Avoids image jumping */
margin: 0;
position: relative;
@include backface();
}
.flexslider .slides img {
max-width: 100%;
margin: 0 auto;
display: block;
}
.slides { @include clearfix; }
html[xmlns] .slides { display: block; }
* html .slides { height: 1%; }
/*================ No JS Fallback ================*/
.no-js .slides > li:first-child { display: block; }
.flexslider { position: relative; zoom: 1; }
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
.loading .flex-viewport { max-height: 300px; }
.flexslider .slides { zoom: 1; }
.carousel li { margin-right: 5px; }
/*================ Direction Nav ================*/
.flex-direction-nav {
margin: 0;
padding: 0;
list-style: none;
}
.flex-direction-nav { *height: 0; }
.flex-direction-nav a {
display: block;
width: 45px;
position: absolute;
top: 0;
bottom: 0;
overflow: hidden;
opacity: 0;
cursor: pointer;
@include transition(all .3s ease);
}
.flex-direction-nav .flex-disabled {
opacity: 0!important;
filter: alpha(opacity=0);
cursor: default;
}
.flex-direction-nav a {
text-indent: -9999px;
background: {
color: transparent;
repeat: no-repeat;
size: 20px auto;
}
/*================ Hide SVG arrows in oldIE ================*/
.lte-ie9 & {
display: none;
}
&.flex-prev {
background-image: url("data:image.....");
background-position: center left;
}
&.flex-next {
background-image: url("data:image...");
background-position: center right;
}
}
/*================ Control Nav ================*/
.flex-control-nav {
position: absolute;
bottom: -$gutter;
width: 100%;
text-align: center;
margin: 0;
padding: 0;
list-style: none;
li {
margin: 0 4px;
display: inline-block;
zoom: 1;
*display: inline;
vertical-align: middle;
}
}
.flex-control-paging li a {
width: 6px;
height: 6px;
display: block;
background-color: #ededed;
cursor: pointer;
text-indent: -9999px;
border-radius: 20px;
border: 2px solid #fff;
&:hover {
background-color: #333;
}
&.flex-active {
background-color: #fff;
border-color: $colorPrimary;
cursor: default;
}
}
.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}
@include at-query ($max, $medium) {
.flex-direction-nav a {
opacity: 1;
width: 25px;
}
.flex-direction-nav a.flex-prev {
left: 0;
background-position: center right;
}
.flex-direction-nav a.flex-next {
right: 0;
background-position: center left;
}
}
@include at-query ($min, $large) {
.flex-direction-nav .flex-prev { left: 10px; }
.flex-direction-nav .flex-next { right: 10px; }
.flexslider:hover .flex-prev { opacity: 1; left: (-$gutter)+5; }
.flexslider:hover .flex-next { opacity: 1; right: (-$gutter)+5; }
}
@include at-query ($min, $maxWidthBp) {
.flex-direction-nav .flex-prev { left: 20px; }
.flex-direction-nav .flex-next { right: 20px; }
.flexslider:hover .flex-prev { opacity: 1; left: -45px; }
.flexslider:hover .flex-next { opacity: 1; right: -45px; }
}
/*================ Captions ================*/
.flex-caption {
margin: 0;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #333;
background: rgba(0,0,0,.6);
color: #fff;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,.3);
padding: $gutter/2;
}
/*================ Custom Flexslider Styles ================*/
.flexslider .slides {
margin: 0;
padding: 0;
list-style-type: none;
}
.slide-link {
position: relative;
display: block;
img {
display: block;
}
}
#heroSlider {
padding-bottom: $gutter*2;
border-bottom: 1px solid $colorBorder;
.flex-control-nav {
bottom: 40px;
}
.flex-direction-nav a {
bottom: $gutter*2;
}
}
最佳答案
我真的只是在 Retina 主题上做了这个来创建一个简短的循环视频背景。我需要它来拉伸(stretch)整个宽度,但它受到其中一个父元素的约束。看起来你们的主题不同,但概念是相同的。
您需要使用开发工具并检查元素以找出页面上的哪个元素限制了它的 100%。然后,您需要将 slider 元素移到该元素之外。然后就像设置 CSS 一样简单,将边距/填充设置为 0 等...
如果您有任何问题,请告诉我,我可以进一步帮助您。如果您发布指向该网站的链接,我可以为您查看并告诉您需要做什么。
关于html - Shopify 图像 slider - 始终扩展到用户全屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31226302/
当我使用路径文件上的快捷方式在文件之间移动时,似乎我不仅仅是在文件之间移动。 我使用>转到一个文件,在该文件中我更改光标的位置并执行某些操作,然后按 gf noremap 关于vim 通过快捷方式直
我正在尝试使用 Pong P. Chu 的书来学习 Verilog。我有一个关于如何评估和实现始终 block 的问题。作者代码中的风格让我感到困惑。 在此示例中,他编写了一个具有两个输出寄存器“y1
我正在尝试制作一个聊天应用程序,因此我需要它始终接收服务器信息。因此,当请求完成时,在: http.onreadystatechange=function(){ 我再次调用该函数,因此: reques
当您在 always block 敏感度列表中使用通配符 @* 时,我对什么被视为输入有点困惑。例如,在下面的示例中,哪些信号被解释为导致 always block 被重新评估的输入? 据我了解,cl
我有一个充当调试器的程序。我为线程设置了一个 hw bp,将 dr0 设置为我希望 bp 所在的地址,将 dr7 设置为 1,因为我希望 bp 在每次执行该地址时生成一个事件。 它有效,但现在的问题是
如何每次都以管理员身份在 Windows 上运行 git bash。 操作系统 - Windows 10 家庭版 64 位 最佳答案 我在 Google 上找到了这个结果: 将 Git Bash 设置
使用 accept() 时或 getpeername() , sockaddr_storage总是有 ss_family=AF_INET6 : struct sockaddr_storage addr
我在 Cordova 方面还有另一个问题。我想在 Cordova 7.1.0 中使用插件“cordova.custom.plugins.exitapp”和“cordova-plugins-printe
我试图让模块通过 ISE 12.4 中的语法检查,但它给了我一个我不明白的错误。首先是代码片段: parameter ROWBITS = 4; reg [ROWBITS-1:0] temp; genv
我正在使用Cordova开发适用于iOS的应用程序,其中包括地理位置功能(我使用官方插件https://github.com/apache/cordova-plugin-geolocation)。我在
我想知道是否有可能只在敏感列表中的多个信号一起变化时才执行 always block 。 例如,假设我有一个信号“in”和另一个“posedge clk”。我希望在两个信号都发生变化时执行 alway
我需要实现一种算法来访问数据库来检查最后一个元素,以便计算新的元素。当然,第一次这是不可能的,因为数据库是空的,我得到 IndexOutOfBoundsException) index 0 reque
我正在利用我在网上找到的画廊系统,根据鼠标图像的接近程度,它会按比例增长。 链接:Gallery 好吧,我调整了代码以响应(如您所见正在 build 中)并且没有明显的问题。我的问题在更改分辨率时开始
我正在创建一个 kiosk 应用程序,我想确保它无论如何始终位于其他 Windows 应用程序和 Windows 任务栏之上。 我已经阻止了 Windows 键盘命令(alt-tab 等),但仍有可能
我即将开始一个新的 React 项目,并尝试利用我以前的知识来创建一些关于我如何构建应用程序的规则。 有些事情我认为是真的: Redux 保存整个应用程序的“主要”数据 如果需要跨应用程序共享,Red
当你打开 VS Code 时,终端默认是在底部打开的。您可以单击该图标将其向右移动。我想知道是否有办法将右侧打开设置为默认值。 谢谢。 最佳答案 是的 - 在 v1.20 中引入了设置 workb
我有一个Events表,其中包含各种类型的事件。我只关心其中一种类型。因此,我编写的每个查询都以开头 Events.objects.filter(event_type="the_type").\
我在单例中创建了一个Timer,并且我一直在努力解决为什么Timer没有触发。我查看了这里的帖子,但没有找到我认为可以直接回答我的问题的帖子。 class ConnectionStateMonitor
我在 TableViewController 中显示了一组项目。它们在 TVC 中正确显示。下面的代码会继续,但它只会继续到我的 MKMapItem 数组的 indexPath 0,而不是被单击的单元
我的 VC 是这样的: var coins = 50 // coins override func viewDidLoad() { super.viewDidLoad() if(SKP
我是一名优秀的程序员,十分优秀!