html - 行文本框 HTML

标签 html css

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

enter image description here

这只是一行,您可以在其中输入文本。可以用 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/

相关文章:

asp.net - 具有未知高度的 ASP.NET Gridview 的 DIV 背景

html - 在 Pycharm 中,CSS 属性不会自动填充

java - 使用 HttpClient POST 提交表单并上传

jquery - textarea 填充 jsfiddle 中的表格单元格但不在实际应用程序中

html - Logo 和菜单在 html 中的相同对齐方式

css - CSS 中的自动幻灯片转换循环

html - 当宽度设置为 100% 时,如何让 Html Table 遵守边距?

javascript - Vuetify - v-text-field(类型 ="number") - 设置 null 而不是空字符串

javascript - 关键帧 CSS 动画

html - 一旦元素被另一个元素覆盖,可点击事件不再触发