【报错记录】Sass::SyntaxError in Welcome#index打错字

Published on:

错误信息:

Showing /Users/apple/job-listing/004/app/views/layouts/application.html.erb where line #7 raised:
Invalid CSS after "...250, 250, 0.39)": expected "{", was ";//背景颜色含透明度"
Extracted source (around line #32):

  background-color: rgba(250, 250, 250, 0.39);//背景颜色含透明度
  max-width: 500px;//最大宽度
  margin-top: 200px;//和顶部拉开距离
  margin-bottom: 0;//这样就可以紧接息面的描述文字
  border-top-right-radius: 3px;//右上角圆边


位置+问题描述:

魔改大赛(中级Part3,step2)章,http://localhost:3000/
替换文字描述,即.title部分的css代码后,刷新首页报错

错误排除方法:

看expected,是打错字,但是没找到。
上slack上求助,发现是看教程看走眼,把.title {也删除掉

.title {
-  font-family: "Helvetica Neue", "Microsoft Yahei", 微软雅黑;
-  text-align: center;
-  margin-top: 200px;
-  margin-bottom: 80px;

Comments

comments powered by Disqus