我正在学习 railstutorial.org,最近决定创建自己的博客。我做到了,现在看起来像 问题是关于文章,其中的文字排在一行中,我不明白为什么
我的 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;
}
最佳答案
这是由于您在 section 和 html 中添加了溢出。删除这些,然后看看你有什么。还要为包含博客文章的容器设置 400px
的宽度。
关于css - Rails 应用程序中的 css 表单问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17899364/