Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

firefox not loading local css with href getting error : ruleset ignored due to bad selector

more options

Hello All,

This is my first question in this Forum. I have made changes to Firefox config and able to call ajax locally but my local site is not loading and showing error with the style sheet. I am loading style sheet using href:

<link rel="stylesheet" type="text/css" href="mystyle.css" />

I am getting 100s of errors: ruleset ignored due to bad selector

Kindly help me out.

Hello All, This is my first question in this Forum. I have made changes to Firefox config and able to call ajax locally but my local site is not loading and showing error with the style sheet. I am loading style sheet using href: <link rel="stylesheet" type="text/css" href="mystyle.css" /> I am getting 100s of errors: ruleset ignored due to bad selector Kindly help me out.

Alla svar (1)

more options

Does the local site work normally in other browsers?

In case Firefox is more strict, could you verify using a validator such as: https://jigsaw.w3.org/css-validator/

Sometimes Firefox can't process external style sheet files due to a difference in page encoding. For example, if the main page was saved using UTF-8 character set, but the external page was saved using UTF-16LE character set. If you are mixing and matching files from different sources, you may need to re-save all the pages with the same encoding.