我想爲手機創建單獨的頁面它應該被隱藏爲 桌面請參閱我的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只針對移動 –