Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下午好。我的任务是了解正在发生的事情。网站是在我之前制作的。如果您尝试将浏览器大小调整为 320x240,您会看到该网站已调整,如果您通过手机 Android 则不是。有人可以告诉什么是错的?从哪里开始寻找?网站正在使用 MasterPages。几乎所有元素都是 HTML。
链接 mif.antaris.ua
您需要在 css 文件中查找@media标签。
@media
似乎移动 css 有一个max-width: 320px或类似的东西。
max-width: 320px
无论如何,尝试将所有移动css 放入如下内容:
@media only screen and (max-width : 400px) { /* mobile css */ }
只有当屏幕宽度低于 400 像素时,这才会在 @media 块中应用 css 代码。
希望有帮助。