从另一台服务器导入css [英] css import from another server
本文介绍了从另一台服务器导入css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以从其他服务器导入css文件吗?让我说我在www.mysite.com上有我的html可以这样导入我的CSS吗?
it is possible to import the css file from another server? let's say i have my html on www.mysite.com can i import my css like this?
<link href="www.anothersite.com/style.css" rel="stylesheet" type="text/css" />
推荐答案
是的,任何完整的网址都对css有效。你想要包括http://尽管。
Yes, any full url is valid for css. You'll want to include http:// though.
<link href="http://www.anothersite.com/style.css" rel="stylesheet" type="text/css" />
这篇关于从另一台服务器导入css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文