标头显示渐变边框

时间:2018-10-26 11:24:59

标签: wordpress

我的标题没有固定,任何人都可以告诉我如何在标题上删除此黑白的

screenshot 这里也是链接WEB LINK

这是标题渐变的代码

    .enable_fixhead .bliccaThemes-header.off-sticky { 

background: transparent;
    background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 78%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(255,255,255,0) 78%);
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%,rgba(255,255,255,0) 78%);

}

1 个答案:

答案 0 :(得分:0)

替换:

background: transparent;
    background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 78%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(255,255,255,0) 78%);
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%,rgba(255,255,255,0) 78%);

带有纯色,例如黑色:

    background: #000;

所以您的新代码将是:

.enable_fixhead .bliccaThemes-header.off-sticky {
    background: #000; /* use your preferred color */
}
  

文件:   http://scottstaverna-ks.com/wp-content/themes/sevill/css/main.css

     

行:239

编辑:

您还希望按以下方式调整Sticky标头代码:

.disable-sticky .bliccaThemes-header.on-sticky,
.enable_fixhead.disable_sticky .bliccaThemes-header.on-sticky {
    position: fixed;
    opacity: 0.8; /* changed from 0 to 0.8 */
    pointer-events: none;
    -webkit-transition: all 800ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
    -moz-transition: all 800ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
    -o-transition: all 800ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transition: all 800ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
    background: #000;  /* added solid black color */
}
  

文件:   http://scottstaverna-ks.com/wp-content/themes/sevill/css/main.css

     

行:238