【问题标题】:Change slider height in wordpress theme Make在 wordpress 主题中更改滑块高度
【发布时间】:2015-02-02 17:45:00
【问题描述】:

我正在尝试更改 Wordpress 主题 Make 中的页面构建器横幅(滑块)高度。 它会让我改变滑块的宽度,但由于某种原因,高度被冻结了。下面的代码是我改变宽度的地方,我会假设这也是改变高度的地方?

    .builder-banner-slide {
position: relative;
z-index: 1;
width: 100%;
height: 0;
background-repeat: no-repeat;
background-position: center center;
background-size: cover; }

【问题讨论】:

    标签: css wordpress slider


    【解决方案1】:

    尝试覆盖之前定义的 height 属性值,如下所示。

    height: 0!important; /* Adjust as needed */
    overflow: hidden!important; /* Hide whatever part that goes beyond the given height */
    

    您的代码现在如下所示

     .builder-banner-slide {
         position: relative;
         z-index: 1;
         width: 100%;
         height: 0!important; /* Adjust as needed */
         overflow: hidden!important; /* Hide whatever part that goes beyond the given height */
         background-repeat: no-repeat;
         background-position: center center;
         background-size: cover; }
    

    注意:如果上面没有这样做,请检查您是否拥有正确的 id 或包含元素的类。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多