我想创建一个这样的文本框:
这只是一行,您可以在其中输入文本。可以用 css 做到这一点吗?还是在 Bootstrap 上?
最佳答案
是的,有可能DEMO HERE
HTML
<input type="text" class="text-line" />
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;
}
关于html - 行文本框 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19992845/