CSS not rendering on MAMP

不羁岁月 提交于 2019-12-11 08:08:24

问题


I'm working on a Wordpress blog. I'm embedding a stylesheet as follows:

<link rel=”stylesheet” href="<?php bloginfo("stylesheet_url"); ?>" type=”text/css” media=”screen” />

However, the CSS doesn't render, at all. I've checked that the URL that is being put in the href is correct. The CSS is found. But, it doesn't render, in all browsers. I am utterly stumped, and would really appreciate a nudge in the right direction. I'm using MAMP 1.8.3, and Wordpress 1.2.9.


回答1:


View Source in your browser and copy the link URL. Then validate it here.




回答2:


I think the main css file must be in the root of the template folder and you will have to link any other css files within the main css file

Example

@import url('css/reset.css');
@import url('css/typography.css');

Hope this was what you were looking for. Good luck.




回答3:


The problem was with my keyboard. It created characters that looked like double quotes, but weren't. Upon making them actual double quotes, the CSS worked. Thanks for the help, everyone!




回答4:


looks like you have double quotes instead of single.

Should be

('stylesheet_url');

Hope this helps.



来源:https://stackoverflow.com/questions/2451808/css-not-rendering-on-mamp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!