1 There is a tab space during initialization
This is because The reason why the content between them is not empty includes spaces and line breaks. Otherwise, the browser will think that spaces or line breaks are the content of the text area, so when writing, need to be close together;
2 The tab key is invalid for textarea operations
When using the tab key in textarea, it is invalid and will switch to another control, but when we have a need , to be able to use the tab key in the text field, you can use javascript or jquery:
Method 1: javascript
<script>tabIndent. renderAll();</script>
class="tabIndent" in textarea tag
Example:
<script>tabIndent.renderAll();</script>
Copyright statement: This article is a blog This is an original article and may not be reproduced without the permission of the blogger.