我聊天了,我需要将所有内容滚动到底部.我想使用justify-content:flex-end和垂直滚动条.
.session-textchat {
height: 320px;
background: #fff;
display: -webkit-flex;
display: flex;
-webkit-align-items: flex-end;
align-items: flex-end;
-webkit-justify-content: space-between;
justify-content: space-between;
-webkit-flex-direction: column;
flex-direction: column;
}
.session-textchat .past-messages {
width: 100%;
max-width: 980px;
margin: 0 auto;
height: 83.92%;
overflow-y: auto;
padding: 30px 0 0;
display: -webkit-flex;
display: flex;
-webkit-align-items: flex-end;
align-items: flex-end;
-webkit-justify-content: flex-end;
justify-content: flex-end;
-webkit-flex-direction: column;
flex-direction: column;
}
.session-textchat .past-messages .receiver,
.session-textchat .past-messages .sender {
width: 100%;
min-height: 47px;
margin: 0 0 20px;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row; …Run Code Online (Sandbox Code Playgroud)我正在使用罗盘.有没有办法添加!重要的@include opacity(1)?
谢谢!
我正在使用flexslider进行一些图像旋转,现在需要使用此幻灯片实现Popup Gallery,即,当用户点击滑块内的活动幻灯片时,想要在灯箱中显示为图库.
所以我尝试合并'magnificPopup',它有效,但问题是它抓住幻灯片的所有实例,即如果我在滑块中有2个图像,我将在弹出库中获得4个,即,magnificpopup获取所有实例包括'克隆',那么如何实现这个问题,有没有其他方法,或插件或回调函数,我可以使用?下面是我试过的代码,都是基本的实现
Flex Sldier:
$('.slideTwo').flexslider({
animation: "slide",
controlNav: true,
directionNav: false,
animationLoop: true,
slideshow: false
});
Run Code Online (Sandbox Code Playgroud)
MagnificPopup:
$('.popup-link').magnificPopup({
type: 'image',
gallery:{enabled:true}
});
Run Code Online (Sandbox Code Playgroud)
HTML:
<div class="slideTwo" id="slideTwo">
<ul class="slides">
<li>
<a class="popup-link" href="img/room1.jpg"><img src="img/room1.jpg" alt="">
<span>East Wall</span>
</a>
</li>
<li>
<a class="popup-link"href="img/room21.jpg"><img src="img/room21.jpg" alt="">
<span>West Wall</span>
</a>
</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)