2008年12月10日星期三

Yaml Builder 生成的 css 在Google Chrome 中无法正常显示的问题

Yaml Builder 是一个生成 Yaml Layout 的图形界面工具。用起来很方便,效果也不错。

试用Yaml Builder后发现,其生成的代码在Firefox、IE、和Opera下均能正常工作,但在Google Chrome下css不起作用。

Yaml Builder 生成的 css 如下:
@charset "UTF-8";
@media screen, projection
{
.....

最终找到问题所在,是【@charset "UTF-8";】 这句代码导致 Google Chrome 无法显示 css 样式,把这句删除之后就可以正常显示了。

【@charset "UTF-8";】made CSS not display correctly in Google Chrome, so remove 【@charset "UTF-8";】to solve this problem.

0 comments: