内容导航:
1、
link rel
2、
web基础(link标签的用法)
1、
link rel
英:
美:
常见释义:
链接rel
1、To delete an entry, send a DELETE request to the edit URL of the contact, which is the URL specified in the entrys
link rel
= "edit" . . .───要删除条目,发送一个DELETE请求到联系人的编辑URL,这是条目的linkrel=“edit”…
2、The obvious approach with link headers would be to say Link: rel= "inherits" .───使用链接头的显而易见的做法可能是形如这样的链接:rel=&rel=“inherits”。
3、Each also contains two further elements,
link rel
= "self" . . .───每个也包含两个进一步的元素,即linkrel=“self”…
4、You need to search the siblings of for an element that looks like
link rel
="image"/>.───现在需要搜索 的同胞,找到形如
link rel
="image"/> 的元素。
5、Then, you added metadata using the rel attribute for
link rel
ationships and the property attribute on non-links.───之后,您使用用于链接关系的rel属性以及非链接中的property属性添加了元数据。
6、A list of
link rel
ationships: Again, use this list from the HTML 4.01 specification in the rel attribute of the link element.───a list of
link rel
ationships:同样,看看HTML 4.01规范中关于link元素的rel属性的列表。
7、To delete an entry, send a DELETE request to the entry URL, which is the URL specified in the entrys
link rel
= "self" . . .───要删除一个项,只要发送一个DELETE请求到项URL即可,该URL是项的linkrel=“self”…
1、link text───链接文本
2、love link───爱情纽带
3、link to───与…连接, 联系;链接到;把…和…连接;把…和…联系起来
4、link───vi.连接起来;联系在一起;将人或物连接或联系起来;n.(Link)人名;(英、德、塞、捷、匈、瑞典)林克;n.【计】链环,环节;联系,关系;vt.连接,连结;联合,结合
5、blue link───蓝色链接
6、rel humidity───相对湿度
7、coupler link───连杆
8、rel gmps───相对gmps
9、rel x───相对x。
2、
web基础(link标签的用法)
一直在使用link标签,这几天接触到了less预处理器之后,怎么定义link都出现了一些问题,在网上查了一些资料,最终是这样定义link的:
此时,页面上已经可以正常显示css了。我才发现我还并不了解link的机制是什么样子的,天呐~(需要用心钻研了)
上w3c查询link可以看到link标签共有9个属性(平时也用不到这么多,所以就解剖以下以上link中的三个属性,剩下的就当是科普一下吧 ~_~)
看到一对理论性的东西,就莫名的头大!话不多说直接开搞。
看到这里基本上就明白了rel当中的值的作用了,其实stylesheet的作用就是为了 标明当前文档与link链接的文档的关系而已 。例如
就是说明了link链接的文档属于当前的文档的外部链接样式表。
例中stylesheet后添加了一个/less的作用,就是为了说明此链接文档是less文档
(这么规定的,照做就行了~)
type表面上看似很简单,只有一个MIME_type的值,实际上 MIME_type 代表了所有的文档类型,有兴趣的话,可以自己了解了解,反正我看了之后只觉得几百种类型,我才用过几种,如果牵扯到ajax的话,相对来说会用的比较多了。(附上w3c中能够用到的script类型 MIME_type )
href属性就比较简单了, 它是用来确定你link文件的路径 ,当然了只要是路径都有绝对相对的,就看你把它放在哪里找出来就是了。
想必大家也用过target这个属性,我也是刚刚看到这个属性居然在h5中不支持了,我的天,这是什么鬼!不过,在测试中,ie8+、firfox、geogle依然能够使用该属性,也就是说,没毛病,可以放心的使用。
好了,link标签中常用的属性就这3个了,剩下的属性因为有默认值的存在,也就不需要你再动手去填写了,但是如果你有特殊要求的话,肯定也不会是看我这篇文章的人了吧~_~。
补充一句(script标签同理的,我懒,我就不背锅了!!!)