没有加载额外的CSS.任何建议



我在我的<head>中添加了以下内容:

<link rel="stylesheet" type="text/css" media="all and (min-width: 481px) and (max-width: 1024px)" href="<?php bloginfo('template_directory'); ?>/css/tablet.css" />`

对于header.php的主页,它工作得很好。但是如果我去,比方说:http://mysyte.com/products-page/checkout/,用firebug检查后,我可以看到浏览器甚至没有加载这个文件,即使我在这个文件中为页面分配了很多属性(tablet.css)。

你有什么建议,从哪里找问题?谢谢!

注:平台- wordpress和电子商务wp插件。

是否尝试回显bloginfo函数,例如…

<link rel="stylesheet" type="text/css" media="all and (min-width: 481px) and (max-width: 1024px)" href="<?php echo bloginfo('template_directory'); ?>/css/tablet.css" />`

相关内容

最新更新