愚蠢的CSS链接谜题



无法获取文件

https://raw.githubusercontent.com/rikkitikkitumbo/writersarah/master/public/allcss.css

来解决这个问题。好像文件坏了…而且不会接受。css文件的唯一内容是:

body{ color: red; }

我可以看看加载的css文件的响应,它看起来很好…我错过了什么?

head
  title Sarah Peters Miller
  meta name = "keywords" content = "Sarah Peters Miller freelance writer New York Times Hairpin Magazine corporate copywright author"
  meta name = "description" content = "Sarah Peters Miller freelance writer New York Times Hairpin Magazine corporate copywright author"
  meta http-equiv="X-UA-Compatible" content="IE=Edge, Chrome=1"
  meta charset="utf-8"
  meta name="viewport" content="width=device-width, initial-scale=1.0"
  = csrf_meta_tags
  <link href='http://fonts.googleapis.com/css?family=Cinzel' rel='stylesheet' type='text/css'>
  <link href='https://raw.githubusercontent.com/rikkitikkitumbo/writersarah/master/public/allcss.css' rel='stylesheet' type='text/css'></link>
  <script src="https://raw.githubusercontent.com/rikkitikkitumbo/writersarah/master/public/public.min.js"></script>
div ng-app="WriterSarah" ui-view="" ng-init="authenticated = '#{@user_authenticated}'; user_email= '#{@user_email}'"

检查这个链接,那个css文件一开始只包含body{ color: red; },但现在更新为:

body {
background-color: red;
text-align: center;
}
a{
color: red;
}

:查看此链接查看当前CSS文件的内容公共css

同时将链接更改为raw.githack.com/rikkitikkitumbo/writersarah/master/public/allcss.css

我不确定,但我认为你必须使用倒[" "]代替[' ']逗号,就像这样…

<link href="https://raw.githubusercontent.com/rikkitikkitumbo/writersarah/master/public/allcss.css" rel="stylesheet" type="text/css"></link>
<link rel="stylesheet" type="text/css" href="theme.css">

相关内容

  • 没有找到相关文章

最新更新