你好,我有问题,因为 iframe 对 ipad 没有响应 这是我的 iframe 代码 css
iframe {
float:center;
width: 100%;
vertical-align: middle;
max-width: 100%;
}
最佳答案
我没有在 iPad 上检查过,但是 float 没有中心。
试试这段代码
CSS
iframe{
margin-left:auto;
margin-right:auto;
display:block;
float:none;
max-width: 150px /* if you use 100% it will fill whole screen */
}
关于css - 适用于 iPad 的响应式 iframe 中心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30735945/