我使用無點的CSS。 這是我的代碼無dotss參考不工作在發佈模式(與Combress)
.jqmWindowBig
{
width: 800px;
height: 500px;
margin-left: -400px;
margin-top: -250px;
.jqmWindowCommon;
}
.jqmWindowCommon {
background-color: #EEE;
color: #333;
border: 1px solid black;
display: none;
position: absolute;
left: 50%;
top: 50%;
padding: 12px;
overflow: auto;
}
當我是我自己的機器上,在調試模式下,所有的CSS文件(也是這個main.less文件)分別引用。
在這種情況下,jqmWindowBig
類是jqmWindowBig
和jqmWindowCommon
的組合,並且一切正常。
現在在製作時,壓縮會創建一個包含我所有CSS文件的大文件,然後CSS將文本輸入到.LESS文件中,因此.jqmWindowCommon
部分不會被'jqmWindowCommon'
部分替換所以jqmWindowBig
是不完整的。
這是我combress配置:
<resourceSets url="~/combres.axd"
defaultDuration="30"
defaultVersion="auto"
defaultDebugEnabled="auto"
defaultIgnorePipelineWhenDebug="true"
localChangeMonitorInterval="30"
remoteChangeMonitorInterval="60"
>
<resourceSet name="siteCss" type="css" >
<resource path="~/Content/StyleSheet/start.css" />
<resource path="~/Content/StyleSheet/Site.css" />
<resource path="~/Content/StyleSheet/reset.css" />
<resource path="~/Content/StyleSheet/screen.css" />
<resource path="~/Content/StyleSheet/razortemplates.css" />
<resource path="~/Content/StyleSheet/logonsmall.css" />
<resource path="~/Content/StyleSheet/ui-lightness/jquery-ui-1.8.23.custom.css" />
<resource path="~/Content/StyleSheet/MainLess.LESS" />
</resourceSet>
總之
所以:參考.jqmWindowCommon;
不更換,發行模式下運行時。
編輯 它不只是這其中不工作,我可以看到的是,這些類型的規則
width: @planningEventItemWidth;
不工作要麼,所以basicly沒有.LESS功能工作時用Combress>
合併
你在使用@import「stylesheetname.css」;在.less文件中? –
沒有,在.less文件中沒有導入 – Michel