css - Rails 应用程序中的 css 表单问题

标签 css ruby-on-rails railstutorial.org

我正在学习 railstutorial.org,最近决定创建自己的博客。我做到了,现在看起来像 this 问题是关于文章,其中的文字排在一行中,我不明白为什么

我的 custom.css.scss 文件:

@import "bootstrap";

/* universal */

$grayMediumLight: #eaeaea;

html {
overflow-y: scroll;
}

 body {
padding-top: 60px;
}

section {
overflow: auto;
}

textarea {
resize: both;
}

 .center    {
text-align: center;
h1 {
margin-bottom: 10px;
}
}

 p {
text-align: left;
}   

附言我渴望 this

最佳答案

这是由于您在 section 和 html 中添加了溢出。删除这些,然后看看你有什么。还要为包含博客文章的容器设置 400px 的宽度。

关于css - Rails 应用程序中的 css 表单问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17899364/

相关文章:

ruby-on-rails - 如何使用 curl CLI 将文件上传到我的 ruby​​ on rails 应用程序?

ruby-on-rails - 单元测试隔离 : 20 lines of test for 1 line of code?

ruby-on-rails - Rails 教程 : RSpec test decoupling

php - 从 css 下拉菜单发布

jquery - 将类切换到在 ie8 中不起作用的图像标签

css - Firefox - CSS 断字 : break-all unstable

css - 在菜单切换旁边显示购物车符号?

ruby-on-rails - 无法为 devise 创建两个 CustomFailure 重定向行为,一个用于用户,另一个用于 admin_user

ruby-on-rails - RailsTutorial.org - 第 8 章 - signed_in?抛出错误