Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

I can't use FireFox to browse .CSS files, I just get the FireFox text editor when I open the .css file. How do I get it browse?

more options

I am creating html and css files. The browser will open and I can refresh html files. Not so with css. FireFox will not open the css file so I don't know what the file looks like. I need help. I am trying to tak ea class on the topic and my professor won't help me either. Everyone says to right click the css file and force open it with the browser. It is not working. I can't figure it out.

I am creating html and css files. The browser will open and I can refresh html files. Not so with css. FireFox will not open the css file so I don't know what the file looks like. I need help. I am trying to tak ea class on the topic and my professor won't help me either. Everyone says to right click the css file and force open it with the browser. It is not working. I can't figure it out.

所有回复 (4)

more options

If you drag and drop a .css file from Windows Explorer to an open Firefox tab, Firefox should display it as a text file. What happens when you try that?

more options

You can prefix an URL in the location bar with the view-source: protocol to force Firefox to open the file in a tab if you get an open with dialog.

more options

Yes, fireFox will display the .CSS text. It's the browsing that I can't get any browser to do. No matter what. I am beginning to wonder if .CSS files can be seen with a browser. I have not been able to get anything but text. It's not working.

由KirkGregor于修改

more options

CSS files are plain text with no links, so what you see is all there is.

In order to apply CSS to HTML, you need a <link> tag in your HTML.

If you install the Web Developer Extension from the Firefox add-ons site, there is a handy "Edit CSS" sidebar that lets you play with style rules and see the effects live. Note that this pane is not saved, so if you switch tabs, you lose your changes. Make sure to copy out any changes you want to remember.