Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

document.lastStyleSheetSet

引进于 HTML 4

概述

返回最后一个启用的样式表集合,当document.selectedStyleSheetSet属性发生变化时,该属性的值就会变化.

语法

lastStyleSheetSet = document.lastStyleSheetSet

On return, lastStyleSheetSet indicates the style sheet set that was most recently set. If the current style sheet set has not been changed by setting document.selectedStyleSheetSet, the returned value is null.

注意: 当调用document.enableStyleSheetsForSet()方法之后,该属性的值也不会发生变化.

例子

var lastSheetSet = document.lastStyleSheetSet;
if (!lastSheetSet) {
  lastSheetSet = "Sheet not yet changed";
}
console.log("The last sheet set is: " + lastSheetSet); 

查看在线演示

相关链接

规范

文档标签和贡献者

 此页面的贡献者: teoli, AshfaqHossain, ziyunfei
 最后编辑者: AshfaqHossain,