xx0219
V2EX  ›  问与答

链接点击区域 ... ....

  •  
  •   xx0219 · Dec 30, 2016 · 1848 views
    This topic created in 3621 days ago, the information mentioned may be changed or developed.

    左边黄色高亮的(li 标签) 只有在 web 和右边的 4 那里可以点击. 中间的空白部分不能点击..怎么办
    现在结构:
    li
    a
    标签名 + 标签数量
    /a
    /li

    由于各种原因 前提是不能把 a 移到 li 外面去...

    2 replies  •  2016-12-30 20:07:23 +08:00
    oott123
    oott123
    Dec 30, 2016❤️1
    1
    li { position: relative; padding: 0; }
    a { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    xx0219
    xx0219
    OP
    Dec 30, 2016
    2
    @oott123 厉害厉害 果然好使..
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4299 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:23 · PVG 16:23 · LAX 00:23 · JFK 03:23
    ♥ Do have faith in what you're doing.