css - 如何使网站在移动视图中响应
问题描述
我需要将网站设置为移动响应格式。在检查 F12 时,以下代码与 ipad 组兼容。下面是我的css代码。#Result: 将这个css构建成一个对移动/ipad友好的css。#这里的Divs是由jquery动态生成的。我只需要这张图片
但变成这样:
这是生成的div
.SCSS 文件
#Main{
width: 960px;
margin:0px auto;
overflow:hidden;
}.Table1
{
background-color: paleturquoise;
text-align: center;
margin-top: 9em !important;
width: 40%;
color: red;
font-weight: bold;
box-shadow: inset 0 0 10px #000000;
text-shadow: 0px 0px 0px #333;
top: .5%;
font-size:20px !important;
}
.width50 {
width:50% !important;
}
@media screen and (min-width:480px) {
#Main {
width: 50%;
}
.Table1 {
width: 40%;
}
.Table2row1 {
width: auto;
}
body {
margin: 0;
height: 100%;
}
}
解决方案
推荐阅读
- angular - How to simplify NgRx effects? Only difference the service method they call-
- php - 带循环的 PHP 动态数组名称
- javascript - 如何修改我的 js 以使其正常工作?
- javascript - 如何将焦点设置在跨域的 iframe 上
- sql-server - AT (@) 符号开始和结束
- r - 错误:内存耗尽(达到限制?) R 代码 Windows 任务计划程序
- r - 为多种值类型重塑 R 中的数据
- python - 如何在 Python 中修复这个 n-gram 提取器?
- sql - 在 SQL 中分解位掩码
- r - R - 在数据框上使用 purr 添加列