【发布时间】:2016-09-24 17:30:44
【问题描述】:
【问题讨论】:
标签: html css border html-input
【问题讨论】:
标签: html css border html-input
对 chrome 使用 outline:0.. 然后随意设置 border-bottom
input {
outline: 0;
border-width: 0 0 2px;
border-color: blue
}
input:focus {
border-color: green
}
<input placeholder="Text" type="text" />
【讨论】:
input:focus { border-color: green; outline: 1px dotted #000 //whatever you like }
试试这个
.inp {
border:none;
border-bottom: 1px solid #1890ff;
padding: 5px 10px;
outline: none;
}
[placeholder]:focus::-webkit-input-placeholder {
transition: text-indent 0.4s 0.4s ease;
text-indent: -100%;
opacity: 1;
}
<input class="inp" placeholder="What needs to be done??"/>
【讨论】:
input {
border: 0;
outline: 0;
border-bottom: 2px solid blue;
}
【讨论】:
#input_Id{
border:0px;
border-bottom:2px solid #eee;
}
【讨论】:
input {
border: 0;
outline: 0;
border-bottom: 2px solid #03a8f45e;
font-size: 1.4rem;
color: #ccc;
}
<input placeholder="Enter search query" type="text" name="fname" autofocus />
【讨论】: