We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
<select id="abc"> <option value="1">你好吗</option> <option value="2">how are you</option> <option value="3">我很好,谢谢</option> <option value="4">I‘m fine,thanks</option> </select> css #abc { width: 200px; height: 30px; text-align: center; }
1.input输入框本身是单行的,因此不可以设置换行
2.textarea输入框的placeholder文字可以设置换行
由于字符串内不会转译/n和 <br/ >\ ,
<textarea name="" id="" cols="30" rows="10" placeholder="你好/n谢谢"></textarea> <textarea name="" id="" cols="30" rows="10" placeholder="how are you<br/>I'm fine thsnks"></textarea>
我们可以通过
(回车),
(换行)来解决
<textarea name="" id="" cols="30" rows="10" placeholder="你好
谢谢"></textarea> <textarea name="" id="" cols="30" rows="10" placeholder="how are you
 I'm fine thsnks"></textarea>
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: