【发布时间】:2016-06-17 07:26:51
【问题描述】:
我为两个控制器添加了不同的 css 文件,但我的整个应用程序只从 product.css 获取 css
我为两个控制器添加了不同的 css 文件,但我的整个应用程序只从 product.css 获取 css
我为两个控制器添加了不同的 css 文件,但我的整个应用程序只从 product.css 获取 css
products.css
body {
font-size: 11px;
font-family: 'Open Sans', sans-serif;
color: #4A4A4A ;
text-align: center;
}
.wrap {
background: #fff;
margin: 20px auto;
display: block;
width: 300px;
height: 380px;
padding:20px;
border-radius: 2px 2px 2px 2px;
-webkit-box-shadow: 0 1px 4px
rgba(0, 0, 0, 0.3), 0 0 40px
rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0 1px 4px
rgba(0, 0, 0, 0.3), 0 0 40px
rgba(0, 0, 0, 0.1) inset;
float: left;
margin-right: 29px;
}
.wrap img {
width: 100%;
margin-top: 15px;
}
p{
margin-top: 15px;
text-align: justify;
}
h1{
font-size: 20px;
font-weight: bold;
margin-top: 5px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
a{
text-decoration: none;
color: #4A4A4A !important;
}
a:hover{
text-decoration: underline;
color: #6B6B6B !important ;
}
**
【问题讨论】:
-
请不要重复同一个问题。而是编辑您的问题,添加更多详细信息 - 它将在列表中向上移动。请在此问题中显示您的其他 css 文件以及您的 application.css 文件。你怎么知道 products.css 是唯一被使用的文件?
标签: ruby-on-rails css sass