看板 Web_Design 關於我們 聯絡資訊
※ 引述《GoalBased (Artificail Intelligence)》之銘言: : (A) <textarea rows="5" placeholder="你好"></textarea> : (B) <input type="text" placeholder="我好"> 我直接抓取你的去 JS Bin 產生一個html檔案 檔案內容: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <textarea rows="5" placeholder="你好"></textarea> <input type="text" placeholder="我好"> </body> </html> 用以下四個瀏覽器簡單分析: IE 11: http://i.imgur.com/SCy7kpA.gif Chrome: http://i.imgur.com/ty3VDlF.gif Firfox: http://i.imgur.com/Hh50deZ.gif Opera: http://i.imgur.com/nkrSbZX.gif 四個瀏覽器感覺都正常。 比較有差異的點在於,IE當你的鼠標在欄位內時它會把placeholder的文字清除; 其它的瀏覽器,感覺是當有輸入時才會有所動作 。 : 瀏覽器:IE11 : (A)placeholder無效,直接變成text : (B)placeholder有效 : 瀏覽器:Chrome : (A)placeholder有效 : (B)placeholder有效 : 是IE又....跟人家不一樣了,還是我的問題呢? : 有人遇過相同問題嗎? THX -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.248.154.118 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1421145361.A.D23.html