简体   繁体   English

滑块高度CSS不起作用

[英]Slider height CSS does not work

For my website http://www.suemaisano.com/ , I want to increase the homepage slider BACKGROUND IMAGE height (different than slider image, I did not set any slider image, only background image). 对于我的网站http://www.suemaisano.com/ ,我想增加主页滑块背景图像的高度(不同于滑块图像,我没有设置任何滑块图像,仅设置了背景图像)。 I set the class as of the slider as homeSlider, and this is the code I put in the child CSS 我将滑块的类设置为homeSlider,这是我放入子CSS中的代码

.homeSlider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: 1080px !important;}

However, the background image height did not change when I manipulated the min-height. 但是,当我操作最小高度时,背景图像的高度没有改变。 The actual image sizes are ~1920x1080. 实际图像尺寸为〜1920x1080。 Anything I need to change the code to make the min height work? 我需要更改代码以使最小高度正常工作吗?

Thanks in advance! 提前致谢!

假设图像进入显示文本的div中,则下面的内容应为您指定的高度。

.et_pb_slide_content {height: 1080px; }

You need to set height on description container 您需要在说明容器上设置高度

.homeSlider .et_pb_slide_description  {
    min-height: 1080px;
}

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

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