响应式设计和视口无法通过域的“框架集"工作. [英] Responsive design and viewport not working through domain's "frameset."

查看:52
本文介绍了响应式设计和视口无法通过域的“框架集"工作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个响应式设计网站,但遇到了一个相当大的问题.我使用了视口代码:

I'm working on a responsive design site and ran into a fairly large snag. I used viewport code:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />

并使用:

@media only screen and (min-width: 501px) and (max-width: 930px)  {

此处为 CSS}

根据需要.当我将索引页放在我的主机服务器上进行检查时,该站点不会响应我的移动设备之间的更改.我试过我的域名站点 - 没有用.原来域名指向我的服务器,并在 中显示该站点,并取消了我的 CSS 和元数据.当我转到服务器的本机网址时,它可以正常工作.反正有这个吗?

as needed. When I put my index page on my host server to check it the site wouldn't respond to changes between my mobile devices. I tried my domain name site- didn't work. Turns out the domain name points to my sever and displays the site in a <frameset> and canceling out my CSS and meta. When I go to the native web address of the server it works properly. Is there anyway around this?

推荐答案

我建立了一个响应式设计站点,该站点使用客户端的视口来确定站点的配置方式.原来我的域名是用掩码转发的,CSS 正在读取"框架作为视口.避免了灾难.

I set up a responsive design site which uses the client's viewport to determine how the site is configured. It turned out my domain name was forwarding with masking and the CSS was 'reading' the frame as the viewport. disaster averted.

这篇关于响应式设计和视口无法通过域的“框架集"工作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆