首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android/Chrome是否完全支持背景剪辑CSS属性?在PC和Mac上的FF/Chrome中工作正常

Android/Chrome是否完全支持背景剪辑CSS属性?在PC和Mac上的FF/Chrome中工作正常
EN

Stack Overflow用户
提问于 2020-08-28 01:44:56
回答 1查看 120关注 0票数 0

我有一些文本,我正在应用一个背景图像,以使用‘背景剪辑’属性作为填充显示。这个效果适用于Mac和PC上的Firefox和chrome,但在使用Chrome的android设备上,我唯一要测试的是,文字是“there”,意思是我可以触摸屏幕,它会高亮显示,但效果不在那里,使它看起来“看不见”。文本在画布上进行Z索引,在桌面浏览器中看起来也很好。为什么android/chrome的渲染不一样,你有什么想法吗?

附言:我不能在笔中拆分这一部分,所以请参阅附加代码:

HTML

代码语言:javascript
复制
<div id="light-intro-wrapper">
<div id="light-intro">THIS IS<br>
  TEXT <br>
  <a class="down_block go" href="#content_a"><i class="fa fa-arrow-down"></i></a> </div>
<div id="3d-graph">
  <div style="position: relative;">
    <div>
      <div style="position: relative;">
        <div class="scene-nav-info" style="display: none;">Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan</div>
        <div class="scene-tooltip">&nbsp;</div>
        <canvas height="958" style="width: 1920px; height: 958px;" width="1920"></canvas>
      </div>
    </div>
    <div class="graph-info-msg">&nbsp;</div>
  </div>
</div>
<div id="content_a">&nbsp;</div>

CSS

代码语言:javascript
复制
canvas#canvas {
    display: block;
    letter-spacing: 0.2rem;
    margin: 0;
    padding: 0;
    color: #FFF;
    overflow: hidden;
    z-index: 0;
    position: absolute;
    width: 100%;
}

#light-intro {
    height: 200px;
    background: url("image.jpg");
    z-index: 9999;
    position: absolute;  
    width: 50%;
    display: table-cell;
    vertical-align: top;
    font-family: 'Nunito Sans',sans-serif;
    font-weight: 900;
    font-size: 7vh;
    line-height: 1em;
    margin: 0 auto;
    margin-top: 400px;
    top: 0px;
    color: transparent;
    right: 25%;
    text-align: center;
    background-clip: text;
    -webkit-background-clip: text;
}


.down_block {
    border-radius: 50%;
    display: flex;
    height: 55px;
    left: 50%;
    margin-left: -17px;
    opacity: 1;
    position: absolute;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease 0s;
    width: 55px;
    z-index: 999;
    background: #FFF url("http://chrismccormick.com/wp-content/uploads/cellular.jpg");
    font-size: 3vw;
    margin-top: 20px;
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    background-size: cover;
}

.go {
    color: transparent;
}

编辑:已清理的标记/CSS

贴身-mk

EN

回答 1

Stack Overflow用户

发布于 2020-09-02 05:41:49

显然,它不受支持。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63621543

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档