【问题标题】:Header shows gradient border页眉显示渐变边框
【发布时间】:2018-10-26 11:24:59
【问题描述】:

我的标题没有显示固定,谁能告诉我如何删除标题上的黑色/和/白色这里是

这里也是链接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%);

}

【问题讨论】:

  • 您应该提供更多详细信息。您的代码或 URL。只是截图是不够的
  • 这里是 scottstaverna-ks.com 的链接
  • 这是一个标题边框或我无法删除它的东西......
  • 谁能解决这个问题?

标签: wordpress


【解决方案1】:

替换:

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

【讨论】:

  • 还是有同样的问题
  • 您可以保留background: transparent; 并删除其他 3 行。它将使标题背景透明。请记住,您的菜单项和徽标是白色的,因此,由于透明背景,它们将不可见。
  • 是的,这就是我所做的,但标题上仍有白色边框
  • 我这边没有白边。尝试从 main.css 中删除渐变,同时保留 .background: transparent; 代码。菜单项仍为白色且不可见。
  • @X-Developer 这不是白色边框。因为您的图像位于显示白色的标题下方
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-02-12
  • 2021-03-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多