简体   繁体   English

此代码段是什么意思?

[英]What does this snippet mean?

这是我在Drupal的page.tpl.php中看到的,但我不明白。

<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>

Here you go: Flash of Unstyled Content or FOUC 您可以执行以下操作:未样式化内容或FOUC的闪烁

It actually does not refer to Adobe Flash, it's referring to rendering of html before applying css to it. 它实际上不是指Adobe Flash,而是指在将CSS应用于HTML之前呈现HTML。 This is a hack to prevent IE from rendering html before applying css to it. 这是一种防止IE在将CSS应用于html之前呈现html的技巧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM