search

Home  >  Q&A  >  body text

javascript - 移动端点击能打电话,百度移动网页有个data-tel属性?

<a href="javascript:void(0)" data-tel="tel:10086" class="c-btn wa-kefutable-fxbd WA_LOG_BTN  wa-kefutable-btna  WA_LOG_BTN wa-kefutable-btn"><span> <span class="wa-kefutable-c333">    </span> <span class="c-gap-left wa-kefutable-c333">10086</span> </span><span class="c-icon wa-kefutable-p2 c-color-gray-a"></span></a>

html属性没有这个东西,我想要点击某个元素后,弹出打电话界面。

天蓬老师天蓬老师2774 days ago709

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-11 11:00:49

    <a href="tel:13888888888">电话</a>

    reply
    0
  • Cancelreply