Nested hyperlinked areas without nested link elements in HTML source

后端 未结 5 1973
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 16:11

I\'d like to have something that looks and behaves as hyperlink inside larger rectangle (full page wide) which is also hyperlink. Below there is ASCII-art representation of what

5条回答
  •  太阳男子
    2021-02-02 16:43

    Perhaps this would work?

    div.parentBox {
      position:relative;
      height:100px;
    }
      a.someLink {
        position:absolute;
        top:0;
        left:0;
        height:100px;
      }
    
    // Now just position the two spans
    
    
    Some Text Link Text

提交回复
热议问题