anai1943
V2EX  ›  CSS

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

  •  
  •   anai1943 · Sep 6, 2017 · 3977 views
    This topic created in 3178 days ago, the information mentioned may be changed or developed.

    如下图所示,在 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 replies    2017-09-06 21:33:33 +08:00
    seognilV2
        1
    seognilV2  
       Sep 6, 2017 via Android
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:20 · PVG 06:20 · LAX 15:20 · JFK 18:20
    ♥ Do have faith in what you're doing.