iT邦幫忙

3

[筆記]用圖片 取代 <input type="file"> 欄位

用途

想要與其他圖片來美化 <input type="file">欄位的話 可以用label來去運行

大致觀念是 css同id 會同時觸發的觀念
然後再把input hidden 隱藏裡來就能完成

算是一個小沒腳

參考

    <div>
      <label for="input">
        <img src="http://imgur.com" />
      </label>
      <input hidden id="input" type="file" />
    </div>

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言