html - 如何在 html5 表单的 css3 中应用媒体查询

标签 html css

我已经使用 css 制作了 html5 表单,但无法在 form.plz 帮助中应用媒体查询

<div class="form">  
<form action="Login.jsp" method="post" >
<input type="text" name="username" placeholder="username" required/>

<button>login</button>

Not registered? <a href="RegisterForm.jsp">Create an account</a></p>

样式.css

最佳答案

你试过类似的东西吗?您在发布问题之前是否进行了谷歌搜索?

@media screen and (min-width: 641px) and (max-width: 768px) {
    .form .input{
       width:100px;
    }
}

@media screen and (max-width: 640px) {
    .form .input{
       width:50px;
    }
}

关于html - 如何在 html5 表单的 css3 中应用媒体查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37023281/

相关文章:

javascript - HTML5 Canvas atan2 关闭 90 度

java - 初始 HTML 文本字段光标位置

css - 由于 text-shadow 和 font-smooth 不起作用,如何使我网站上的字体平滑?

jquery - 每2秒滑动一个div

html - 将div并排放置在列中

css - Vaadin 文本字段 : how to disable underline?

javascript - 如何使用 jquery 使用 name 属性解析远程页面中的图像?

html - 限制 div 以仅获取特定样式表

html - 在 jQuery 选项卡中并排布局 div

css - lessc的配置文件