一,rel = "stylesheet"
在< link >标签中,rel是relations的缩写,是关联的意思,关联的是一个样式表(stylesheet)文档,它表示这个link在文档初始化时将被
rel的属性值
值 描述
alternate 文档的替代版本(比如打印页/翻译或者镜像)
stylesheet 文档的外部样式表
start 集合中的第一个文档
next 集合中的下一个文档
prev 集合中的上一个文档
contents 文档的目录
index 文档的索引
glossary 在文档中使用的词汇的术语表(解释)
copyright 包含版权信息的文档
chapter 文档的章
section 文档的节
subsection 文档的小节
appendix 文档的附录
help 帮助文档
bookmark 相关文档
二,windows.location.href
self.location.href=“/url” 当前页面打开URL页面
location.href=“/url” 当前页面打开URL页面
window.location.href=“/url” 当前页面打开URL页面,前面三个用法相同。
this.location.href=“/url” 当前页面打开URL页面
parent.location.href=“/url” 在父页面打开新页面
top.location.href=“/url” 在顶层页面打开新页面
如果页面中自定义了frame,那么可将parent self top换为自定义frame的名称,效果是在frame窗口打开url地址
此外,window.location.href=window.location.href;和window.location.Reload()和都是刷新当前页面。区别在于是否有提交数据。当有提交数据时,window.location.Reload()会提示是否提交,window.location.href=window.location.href;则是向指定的url提交数据
三,jsp