行文本框HTML

use*_*929 9 html css html5 css3

我想创建一个这样的文本框:

在此输入图像描述

它只是一个可以输入文本的行.用css可以做到这一点吗?还是在引导程序上?

Vai*_*y07 14

雅,这可能是DEMO HERE

HTML

<input type="text" class="text-line" />
Run Code Online (Sandbox Code Playgroud)

CSS

body {
    background: #333333;
}
.text-line {
    background-color: transparent;
    color: #eeeeee;
    outline: none;
    outline-style: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid #eeeeee 1px;
    padding: 3px 10px;
}
Run Code Online (Sandbox Code Playgroud)