2016-12-10 12 views
0

私はテキストボックスの下の境界線のみを保持したいと思います。ここにここに私のcss-css textbox border on google chrome

input[type="text"],input[type="password"] {   
     border:0px; 
     border-bottom:1px solid black; 
    } 

    input[type="text"]:focus, input[type="password"]:focus {  
     border-bottom:2px solid green;       
    } 

である、それはChromeで

enter image description here

firefox-

enter image description here

クローム

AT-どのように見えるかです、テキストボックスは、フォーカスを取得したときにアウトラインを取得します。それを削除する方法はありますか?

+2

このアウトラインは、フォーム要素がユーザーに対してフォーカスを持っていることを示します。 'outline:none;'はそれを削除します。本当に悪いですか? :) –

答えて

0
input[type="text"]:focus, input[type="password"]:focus {  
     outline:none; 
    border-bottom:2px solid green;       
} 

アウトラインがありません。