CSS----疑难问题

  1. <link href="css/style.css" rel="stylesheet" type="text/css">这里的rel="stylesheet"表示什么意思?

是告诉浏览器你link进来的是个样式表文件   

stylesheet:样式表

首先,link标签是用于当前文档引用外部文档的,其次,这个标签的rel属性用于设置对象和链接目的间的关系,说白了就是指明你链进来的对象是个什么东西的,具体的值及其所表示的关系如下:
Alternate:Substitute version of the file that contains the link. 
Appendix:Page that is an appendix for the set of pages. 
Bookmark:Bookmark. 
Chapter:Page that is a chapter for a set of pages. 
Contents:Table of contents document. 
Copyright:Copyright notice for the current page. 
Glossary:Glossary for the current page. 
Help:Help document. 
Index:Index document for the current page. 
Next:Next document in a sequence. 
Offline:href that contains a path to the CDF file to be used for an offline favorite. 
Prev:Previous document in a sequence. 
Section:Page that is a section for a set of pages. 
Shortcut:Icon href that contains a path to an icon file to be used for the favorite or link. 
Start:First document of a set. 
Stylesheet:Style sheet. 
Subsection:Page that is a subsection for a set of pages.

      2.在CSS中定义a:link、a:visited、a:hover、a:active顺序
“爱恨原则”(LoVe/HAte),即四种伪类的首字母:LVHA。
再重复一遍正确的顺序:a:link、a:visited、a:hover、a:active .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值