简体   繁体   English

如何降低此滑块?

[英]How can I make this slider lower?

I have this site: 我有这个网站:

link 链接

On the right side you will find your slider (a bottle). 在右侧,您会找到滑块(一个瓶子)。 I want to make that slider smaller (about 70% of the .right div) 我想缩小该滑块(大约占.right div的70%)

I put a picture to understand better what they want to do. 我放一张照片以更好地了解他们想要做什么。

在此处输入图片说明

I use wordpress plugin CPT Bootstrap Carousel .In the first page and I have another slider (all with this plugin) ... should not affect the CSS code that slider. 我使用wordpress插件CPT Bootstrap Carousel 。在第一页中,我还有另一个滑块(都与该插件一起使用)...不应影响该滑块的CSS代码。

I tried to add this code...but you can not look good ... I try to see as it is. 我尝试添加此代码...但是您看起来并不好...我尝试按原样查看。

.right>#cptbc_791{height:70%;}

Can you help me solve this problem? 您能帮我解决这个问题吗?

Thanks in advance! 提前致谢!

Have you tried adding a height to the main div of the slider? 您是否尝试过向滑块的主div添加height

.parent{
  height:500px!important
}

.slider{ max-height:70%}

Try this: 尝试这个:

.right .carousel-inner{height: 70%!important;max-width: 20%;}  

^Remove the max-width if you want it to fill the parent. ^如果希望最大宽度填充父级,请删除它。 Hope this helps you out. 希望这可以帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM