CSS错误 - “期望样式规则的选择器”。 [英] CSS Error- “Expected a selector for the style rule”.

查看:101
本文介绍了CSS错误 - “期望样式规则的选择器”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从github添加了一个CSS文件。但是当我打开那个css时,整个文档显示出一些错误,'期望一个样式规则的选择器'。 CSS文件看起来像一个HTML文档。如何解决这个错误。请帮忙。

解决方案

只需添加一个答案就可以从未答复的列表中移动它。



OP有自己解决了。他的评论是......

引用:

我得到了答案,下载的文件格式不正确。


I have added a CSS file from github. But when I open that css, the whole document is showing some errors, 'Expected a selector for the style rule'. The CSS file looks like a html doc though. How to solve this error. Pls help.

解决方案

Just adding an answer to move this from the Unanswered list.

OP has solved it by himself. His comment is...

Quote:

I have got the answer, the file downloaded was not properly formatted.


这篇关于CSS错误 - “期望样式规则的选择器”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆