我有一個使用的屬性,如下面幾個CSS clases:ASP.NET捆綁和縮小 - CSS3屬性失敗
.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;
}
當創建象下面這樣StyleBundle:
StyleBundle bundle_cssSession = new StyleBundle("~/Css/bundle_session");
bundle_cssSession.Include("~/Styles/_catalog.css");
的的System.Web .Optimization.Styles.Render(「〜/ Css/bundle_session」)失敗,並顯示以下錯誤:
/* 縮小失敗。返回未分類的內容。 (2196,14):運行時錯誤CSS1036:預計表達,發現「0」 */
如果刪除了多個「背景」屬性(離開只是其中之一)的微小的作品。
有沒有解決方案使用類似上面的CSS3屬性StyleBundle?
謝謝。
非常感謝您的回答。我會研究mooncode解決方案。 – mmmmmm
死鏈接 - 請修復 –
鏈接已死,所以答案在其他地方。 – Moebius