It looks like selected some text, but the background color will not disappear when you click it or move cursor.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
You can't use textarea element for this. Just make a contentEditable contentEditable div and use javascript to style it.
That could be a div the styled during events and as other suggested make it contentEditable. With regards to textarea I have read similar question here. Check it if it's what your looking for.
It may be a
div
with contentEditable set to true