---
id: bad87fee1348bd9aed908845
title: 给表单输入框添加样式
challengeType: 0
forumTopicId: 18312
required:
-
link: >-
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css
raw: true
dashedName: style-text-inputs-as-form-controls
---
# --description--
可以在 submit `button` 元素内加上 ``,来添加 Font Awesome 的 `fa-paper-plane` 图标。
为表单的文本输入框(text input)设置 `form-control` class。 为表单的提交(submit)按钮设置 `btn btn-primary` class, 并为它加上 Font Awesome 的 `fa-paper-plane` 图标。
所有文本输入类的元素如 ``,`