作者steven11329 (清新柳橙)
看板Web_Design
標題[問題] 請教文字游標顯示方法
時間Tue Aug 9 11:29:58 2016
我想自己做個網頁文章所見即所得的編輯器,可是不知道怎樣才能點滑鼠左鍵後,出現閃爍的文字游標(就是垂直線一直閃的那個)。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.13.99.27
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Web_Design/M.1470713401.A.135.html
1F:→ steven11329: 喔我找到了,body 有個屬性叫contenteditable 設定 08/09 14:06
2F:→ steven11329: 為true就可以了! 08/09 14:06
3F:推 hijkxyzuw: 或是用 <textarea> 文字內容…… </textarea> 08/10 11:57
4F:→ hijkxyzuw: 那要怎麼改游標的樣式? 08/10 11:58
5F:→ steven11329: 鼠標的話 css 有cursor 可以用,文字的就不知道了… 08/10 15:38