We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

I'm testing my html using CSS3. When I drop my .html file on to my Safari browser everything works, but in Firefox I get plain html with no CSS

  • 2 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 cor-el

more options

I'm testing my html using CSS3. When I drop my .html file on to my Safari browser everything works, but in Firefox it displays plain html with no CSS or javascript

I'm testing my html using CSS3. When I drop my .html file on to my Safari browser everything works, but in Firefox it displays plain html with no CSS or javascript

所有回复 (2)

more options

Can you post the problem page online?

If this page is only on your computer, are you testing using a file:// URL? If so, is the CSS or JS in an external file? Firefox imposes certain security restrictions on paths when using file:// to avoid pages having access to folders beyond the "site" you're testing.

You could check for errors in the Browser Console (which you can open from the Developer menu). I suggest clicking the Clear button in the console, then reloading your page to see just the messages relevant to its initial load.

more options

It is best to use only relative paths to additional files if you test locally and only go up to nested directories and not go back in the directory tree.