根据这个:http://www.w3.org/TR/html4/present/styles.html#h-14.6 我可以直接在 http header 中链接样式表。 在 php 中它看起来像这样:
header('Link: <http://www.acme.com/corporate.css>; REL=stylesheet');
这样做有什么缺点吗?
最佳答案
主要缺点是它只能在 Firefox 和 Opera 中运行。参见 http://greenbytes.de/tech/tc/httplink/ .
关于php - HTTP header 样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8091996/