私はモバイルビューのために別のページを作成しようとしています。それは非表示にする必要があります デスクトップこのコードでは私のCSSとHTMLの何が間違っていますか?モバイルcssのデスクトップショーの非表示
コード:
<form class="form-signin-login" method="post" id="login-form">
<input type="text" name="user_entered_id" id="user_entered_id" value="Email (or) Phone No" onblur="if(this.value=='') this.value='Email (or) Phone No'" onfocus="if(this.value =='Email (or) Phone No') this.value=''">
<input type="password" name="lgpassword" id="lgpassword" value="Password" onblur="if(this.value=='') this.value='Password'" onfocus="if(this.value =='Password') this.value=''">
<input type="submit" class="button" name="submit" value="Login">
</form>
<style>
body{
background-color:#000;}
@media screen and (max-width:300px) {
.input[type=text], .input[type=password]{width: 100%;
padding: 12px 20px;
background-color:#000;
color:#fff;
outline:none;
border: none;
border-bottom: 1px solid #fff;
margin: 8px 0;
-webkit-box-shadow: 0 0 0px 1000px black inset;
-webkit-text-fill-color: white !important;
}
}
</style>
何を隠そうとしていますか?フォーム全体? –
はい、この携帯のみのCSSです –