1

裸奔啦~ 裸奔啦~

 9 months ago
source link: https://jiongks.name/blog/2010-04-09
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

裸奔啦~ 裸奔啦~

本文摘自 勾三股四 更早时期的 不老歌 博客。


刚通过朋友提醒,今天是著名的CSS裸奔节~
废话不多说了,来裸奔了
大家也快快加入到裸奔的行列中来吧

不老歌童鞋们如果想CSS裸奔的话,代码如下:

var list = document.head.getElementsByTagName('link');
for (var i = 0; i < list.length; i++) {
	if (list[i].rel == 'stylesheet') {
		document.head.removeChild(list[i]);
	}
}
var tempList = document.head.getElementsByTagName('style');
for (var i = 0; i < list.length; i++) {
	document.head.removeChild(list[i]);
}

Related Issues not found

Please contact @jinjiang to initialize the comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK