html - 在 PC Chrome Inspect 视图中,一切都很完美,但在移动设备上却没有响应
问题描述
我使用 HTML CSS js jquery 和 GSAP 构建了一个表单。当我使用 chrome 控制台进行调试时。它显示完美,但从手机访问被破坏。我使用了媒体查询,但它被破坏了,所以我删除了它。如何使其在移动视图中也有响应。
*{
margin: 0;
padding: 0;
body{
font-family: montserrat, arial, verdana;
background-color: #000000;
background-image: linear-gradient(315deg, #000000 0%, #414141 74%);
}
#msform {
width: 900px;
margin: 50px auto;
text-align: center;
position: relative;
}
#msform fieldset {
border: 0 none;
border-radius: 3px;
box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
padding: 20px 30px;
box-sizing: border-box;
width: 80%;
margin: 0 10%;
border:solid 2px white;
position: relative;
}
你可以在 github- https: //tamzid958.github.io/multipage_form/ 中看到我的实时表单
解决方案
推荐阅读
- javascript - react redux-thunk 将状态包装在另一个状态中
- java - 一旦达到 256 个元素,Flux.range 就会等待发射更多元素
- python - 如何更新股票 API 中的价格不会更新
- angular - 为什么 ion-input + angular-onscreen-material-keyboard 不起作用
- azure - Azure 存储资源管理器:无法检索子资源
- linux - 在安装的文件夹上创建文件时出错:无法运行程序“chmod”:错误=2
- amazon-web-services - 在 Squarespace 网站上添加 AWS Cognito 登录/注册功能
- algorithm - 生成三维 Voronoi 图
- reactjs - 添加 react-bootstrap 卡,但带有用户定义的图像链接
- reactjs - 在反应中构建图像滑块