V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Can I use?
http://caniuse.com/
Less
http://lesscss.org
Cool Libraries
Bootstrap from Twitter
Jetstrap
anai1943
V2EX  ›  CSS

css 怎样禁用使用触摸屏点击 PNG 背景按钮产生的半透明背景?

  •  
  •   anai1943 · 2017-09-06 20:18:02 +08:00 · 3152 次点击
    这是一个创建于 2395 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如下图所示,在 surface 上点击一个 div,会产生半透明的黑色背景。这个能用 css 禁止掉么?

    div 是这样写的

    <style>
    	div{background:url('../images/btn.png');width:50px;height:50px}
    </style>
    <div onclick="location.href='abc.html'"></div>
    
    mFcf1.png
    1 条回复    2017-09-06 21:33:33 +08:00
    seognilV2
        1
    seognilV2  
       2017-09-06 21:33:33 +08:00 via Android
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3180 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:24 · PVG 20:24 · LAX 05:24 · JFK 08:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.