Each single line text input control consists of this HTML: The following CSS rules are used to style the input elements: label 요소와 placeholder 속성 구분 label 요소는 for 속성과 연.. Specifies placeholder text in a text-based input. 那么能不能调整input的大小呢? 设置input的大小. input { width:200px; height:100px; font-size:20px; } … The CSS class “.input” exactly accomplishes the same and it is applied to the input text element: .input { border: 0; padding: 10px 0; border-bottom: 1px solid #ccc; } There is a span element placed below the input type text and decorated with CSS class “border”. The CSS. This demo page is related to the article Styling form controls with CSS, revisited. Since every element, regardless of type, is based on the HTMLInputElement interface, they technically share the exact same set of attributes. input[type="text"] не обязательно можно просто . CSS attribute selector is used to targeting an input text fields. Хотя элемент не требуется помещать внутрь контейнера