我应该使用什么来在CSS中设置我的Flash消息样式?我似乎无法改变它的造型。这里是我的应用程序布局的
中的相关代码:Flash格式的CSS样式相关的原始CSS是这样的,但目前没有工作。
.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
+0
什么是CSS样?什么是生成的HTML输出? –
2011-03-04 05:37:50
+0
发布了CSS ... –
2011-03-04 05:44:03
+0
对于您正在使用的HTML和CSS,这应该起作用。你确定你的头文件中包含CSS文件吗?如果是Rails教程,你应该在你的布局中将'layout'/ stylesheets''渲染得更远一些,它应该有'stylesheet_link_tag'blueprint/screen',:media =>'screen''(在'应用程序/视图/布局/ _stylesheets.html.erb')。见[这里](https://github.com/BinaryMuse/rails-book/blob/master/app/views/layouts/application.html.haml#L8)和[这里](https://github.com/ BinaryMuse/rails-book/blob/master/app/views/layouts/_stylesheets.html.haml)(尽管我使用的是Haml)。 –
2011-03-04 05:50:26