zoukankan      html  css  js  c++  java
  • CSS实现超级链接需要通过双击后跳转

    超级链接需要双击后跳转如何实现。

    CSS代码
    .test3 span {

    position: relative;
    }
    .test3 span a { 
    position: relative;
    z-index: 2; 
    }
    .test3 span a:hover, .test3 span a:active { 
    z-index: 4; 
    }
    .test3 span input { 
    background: transparent; 
    border: 0; 
    cursor: pointer; 
    position: absolute; 
    top: -1px; 
    left: 0; 
    101%; /* Hacky */
    height: 301%; /* Hacky */
    z-index: 3; 
    }
    .test3 span input:focus { 
    background: transparent; 
    border: 0; 
    z-index: 1; 
    }
    html代码 
    <div class="test3">
    <span><input type="text" value="&nbsp;" readonly="true" />
    <a href="http://www.jbxue.com">Double click me</a></span>
    </div>
  • 相关阅读:
    EM
    te2
    te
    XLnet
    GPT
    40.Properties
    38.特殊操作流
    37.I/O流
    35.File
    day68日考
  • 原文地址:https://www.cnblogs.com/cfinder010/p/3366313.html
Copyright © 2011-2022 走看看