<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>文本框 - 添加 rows 属性</title> <link rel="stylesheet" href="../assets/mdui-v0.4.2/css/mdui.min.css"/> </head> <body> <div class="mdui-container"> <div class="mdui-textfield"> <textarea class="mdui-textfield-input" rows="4" placeholder="Message"></textarea> </div> </div> <script src="../assets/mdui-v0.4.2/js/mdui.min.js"></script> </body> </html>