简体   繁体   English

在Michael Hartl的Rail教程的第10章中,CSS没有更新

[英]CSS not updating in Chapter 10 of Michael Hartl's Rail's tutorial

In chapter 10 of the tutorial I'm changing the CSS for microposts to look different. 在本教程的第10章中,我将更改微博的CSS,使其看起来有所不同。 However they won't update on my local server. 但是它们不会在我的本地服务器上更新。 I tried restarting the server and resetting and repopulating the database but still no luck. 我尝试重新启动服务器,并重置并重新填充数据库,但还是没有运气。 Why is this happening? 为什么会这样呢?

Custom CSS File 自定义CSS文件

/* microposts */

.microposts {
  list-style: none;
  margin: 10px 0 0 0;

  li {
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
  }
}
.content {
  display: block;
}
.timestamp {
  color: $grayLight;
}
.gravatar {
  float: left;
  margin-right: 10px;
}
aside {
  textarea {
    height: 100px;
    margin-bottom: 5px;
  }
}

Restarting my computer somehow solved the problem. 重新启动计算机以某种方式解决了该问题。 Thanks for everyone's input! 感谢大家的投入!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Michael Hartl的Rails教程第8章中的问题-CSS期望 - Trouble in Chapter 8 of Michael Hartl's Rails Tutorial - CSS Expects 在Michael Hartl(出色的)Rails教程的第7章,练习2 - On Chapter 7, Excercise 2, of Michael Hartl's (excellent) Rails Tutorial 调试信息显示为页脚的一部分,仅显示一行? Michael Hartl的Ruby on Rails教程第7章 - Debug Information Shown as Part of Footer and Displaying Only One Line? Michael Hartl's Ruby on Rails Tutorial Chapter 7 Michael Hartl Rails教程-CSS无法正确呈现 - Michael Hartl Rails Tutorial - CSS not rendering properly 间距/ CSS问题? -Michael Hartl撰写的Ruby on Rails教程 - Spacing/CSS Issue? - The Ruby on Rails Tutorial by Michael Hartl Michael Hartel的Ruby on Rails教程7.7中的CSS贬值警告 - Depretieation Warning for CSS in Michael Hartel's Ruby on Rails tutorial 7.7 Michael Hartl的Railstutorial:清单7.32:用于测试错误消息的模板 - Michael Hartl's Railstutorial : Listing 7.32: A template for tests of the error messages Hartl Rails教程第7章错误仍然为黑色的字段 - Hartl Rails Tutorial Chapter 7 field with error still black 在Heroku Hartl Ch 10中未加载CSS - CSS not loading in heroku Hartl Ch 10 Michael Hartl / Ruby on Rails,引导程序,示例应用程序,标头CSS无法正常工作/未按预期格式化 - Michael Hartl / Ruby on rails, bootstrap, sample app, header css not working/ formatting as expected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM