使用する outline:0
chrome ..の場合は、border-bottom
好きなように
input {
outline: 0;
border-width: 0 0 2px;
border-color: blue
}
input:focus {
border-color: green
}
<input placeholder="Text" type="text" />
input {
border: 0;
outline: 0;
border-bottom: 2px solid blue;
}
これを試して
.inp {
border-top: none;
border-left: none;
border-right: none;
border-bottom: 1px solid #03a8f45e;
padding: 5px 15px;
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_Id{
border:0px;
border-bottom:2px solid #eee;
}
これを試すことができます
.form-group input {
display: block;
background: none;
padding: 0.175rem 0.175rem 0.0875rem;
font-size: 1.4rem;
border-width: 0;
border-color: transparent;
line-height: 1.9;
width: 100%;
color: #ccc;
transition: all 0.28s ease;
box-shadow: none;
}
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 />