FOUC--FlashOfUnstyledContent(文档样式闪烁)
http://www.bluerobot.com/web/css/fouc.asp/中是这么定义的:
WhatisaFOUC?
SomepagesthatusetheCSS@importruleexperienceacuriousdisplayquirkintheWindowsversionofMSInternetExplorer:amomentaryflashofunstyledpagecontent.
简而言之,指当一些页面以CSS@import方式引用样式加载页面的时候,IE浏览器出现短暂样式失效。
http://zhangyaochun.iteye.com/blog/1701113这里有详细的说明。
JustoneLINKelementorSCRIPTelementinsideadocument'sHEADelementwillpreventaflashofunstyledcontent.在head里面加入一个link或者script标签就可轻松解决啦~如下所示:
LINKelementsolution:页面head标签里面使用link标签
<head> <title>My Page</title> <link rel="stylesheet" type="text/css" media="print" href="print.css"> <style type="text/css" media="screen">@import "style.css";</style> </head>
SCRIPTelementsolution:页面head标签里面使用script标签
<head> <title>My Page</title> <script type="text/javascript"> </script> <style type="text/css" media="screen">@import "style.css";</style> </head>