HTML
CSS
JavaScript
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>文本框 - 多行文本框</title>
  <link rel="stylesheet" href="https://cdn.w3cbus.com/library/mdui/1.0.2/css/mdui.min.css"/>
</head>
<body>

  <div class="mdui-container">
    <div class="mdui-textfield">
      <textarea class="mdui-textfield-input" placeholder="Description"></textarea>
    </div>

    <!-- 固定标签 -->
    <div class="mdui-textfield">
      <label class="mdui-textfield-label">Subject</label>
      <textarea class="mdui-textfield-input"></textarea>
    </div>

    <!-- 浮动标签 -->
    <div class="mdui-textfield mdui-textfield-floating-label">
      <label class="mdui-textfield-label">Message</label>
      <textarea class="mdui-textfield-input"></textarea>
    </div>

    <!-- 禁用状态 -->
    <div class="mdui-textfield mdui-textfield-floating-label">
      <label class="mdui-textfield-label">Disabled</label>
      <textarea class="mdui-textfield-input" disabled></textarea>
    </div>
  </div>

  <script src="https://cdn.w3cbus.com/library/mdui/1.0.2/js/mdui.min.js"></script>
</body>
</html>
CSS

  
JavaScript