How would I go about using PHP as a CSS file. I have just included it as a normal css file, but it fails to work in Google Chrome.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Try adding
in first line of your stylesheet.php
You have to tell the browser that it is a CSS-file and not a HTML-file, write the following before any output:
See: http://www.barelyfitz.com/projects/csscolor/