1
witcher42 2015-07-23 14:17:06 +08:00 1
把你的 css 放到所有 js 的前面...
|
2
witcher42 2015-07-23 14:19:03 +08:00 1
看一下 jQuery ready 的文档 http://api.jquery.com/ready/
> The handler passed to .ready() is guaranteed to be executed after the DOM is ready, so this is usually the best place to attach all other event handlers and run other jQuery code. When using scripts that rely on the value of CSS style properties, it's important to reference external stylesheets or embed style elements before referencing the scripts. |