简体   繁体   English

Wordpress-在移动设备上使用桌面CSS

[英]Wordpress - Using desktop CSS for mobile devices

I'm writing up a child theme for my WordPress site. 我写了我的WordPress网站子主题。 It works fine on the desktop but when I browse it on my Android mobile, it seems to ignore the CSS. 它可以在桌面上正常工作,但是当我在Android手机上浏览它时,似乎忽略了CSS。

How do I make the theme as such that WordPress uses my desktop theme on the mobile? 如何使主题成为WordPress在移动设备上使用我的桌面主题的主题?

I tried looking for the meta viewport tag but don't have it in my theme. 我尝试寻找meta viewport标签,但主题中没有该标签。 Also, tried setting the media query but that doesn't seem to do much either. 另外,尝试设置media query但这似乎也没有太大作用。 Any thoughts? 有什么想法吗?

Turned out to be that my Android (and probably other mobile devices have the same behavior) was not resolving the hostname of my computer on the local network. 原来是我的Android(以及其他移动设备可能具有相同的行为)未解析本地网络上计算机的主机名。 Hence no CSS file was being served. 因此,没有提供CSS文件。 Tried using an absolute URL and that loaded up the theme. 尝试使用绝对URL加载主题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM