HTTP标头样式表 [英] HTTP Header Stylesheets

查看:96
本文介绍了HTTP标头样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据这个: http://www.w3。 org / TR / html4 / present / styles.html#h-14.6
我可以直接在http标头中链接样式表。
在php中它看起来像这样:

According to this: http://www.w3.org/TR/html4/present/styles.html#h-14.6 I can link stylesheets directly in the http header. In php it would look like this:

header('Link: <http://www.acme.com/corporate.css>; REL=stylesheet');

这样做有什么缺点吗?

推荐答案

主要缺点是它只适用于Firefox和Opera。请参见 http://greenbytes.de/tech/tc/httplink/

The main drawback is that it only works in Firefox and Opera. See http://greenbytes.de/tech/tc/httplink/.

这篇关于HTTP标头样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆