mmm*_*mmm 6 css asp.net minify
我有一些使用如下属性的css clase:
.rfs_left_btn
{
width: 176px;
height: 20px;
background: #fefefe;
background: -moz-linear-gradient(top, #fefefe 0%, #fafafa 48%, #f1f1f1 50%, #e9e9e9 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(48%,#fafafa), color-stop(50%,#f1f1f1), color-stop(100%,#e9e9e9));
background: -webkit-linear-gradient(top, #fefefe 0%,#fafafa 48%,#f1f1f1 50%,#e9e9e9 100%);
background: -o-linear-gradient(top, #fefefe 0%,#fafafa 48%,#f1f1f1 50%,#e9e9e9 100%);
background: -ms-linear-gradient(top, #fefefe 0%,#fafafa 48%,#f1f1f1 50%,#e9e9e9 100%);
background: linear-gradient(top, #fefefe 0%,#fafafa 48%,#f1f1f1 50%,#e9e9e9 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#e9e9e9',GradientType=0 );
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px; /* Drop shadow*/
-webkit-box-shadow: 0px 1px 1px #cecece;
-moz-box-shadow: 0px 1px 1px #cecece;
box-shadow: 0px 1px 1px #cecece;
margin-bottom: 5px;
}
Run Code Online (Sandbox Code Playgroud)
在创建如下所示的StyleBundle时:
StyleBundle bundle_cssSession = new StyleBundle("~/Css/bundle_session");
bundle_cssSession.Include("~/Styles/_catalog.css");
Run Code Online (Sandbox Code Playgroud)
所述System.Web.Optimization.Styles.Render( “〜/ CSS / bundle_session”)失败,错误如下:
/ * 缩小失败。返回未缩小的内容。(2196,14):运行时错误CSS1036:期望的表达式,找到了'0' * /
如果删除多个“背景”属性(仅保留其中之一),则缩小效果有效。
是否有解决方案,可以将StyleBundle与上述CSS3属性一起使用?
谢谢。
| 归档时间: |
|
| 查看次数: |
3061 次 |
| 最近记录: |