是否有可能拒绝缩小一行(或地区)的CSS文件由微软的Ajax Minifier? [英] Is it possible to deny minify one line (or region) in css file by Microsoft Ajax Minifier?

查看:263
本文介绍了是否有可能拒绝缩小一行(或地区)的CSS文件由微软的Ajax Minifier?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在我们的项目中使用的磁带库。这个库使用微软的Ajax Minifier默认。我面对某些页面上只在火狐浏览器打破HTML布局问题。我发现,问题与CSS3功能计算()。 +和 - 运营商必须始终用空格在这个函数包围。我可以重新定义这个属性出这个缩小区域的地方,但我我想知道我这样做。我想解决它的内部文件。这可能吗?

I started use Cassette library in our project. This library use Microsoft Ajax Minifier by default. I face problems breaking html layout on some pages only in firefox browser. I found that problem is related to CSS3 function calc(). The + and - operators must always be surrounded by whitespace in this function. I can redefine this properties somewhere out of this minify area but I don`t want to do that. I want to fix it inside file. Is it possible?

推荐答案

我发现,使用 -moz - preFIX为函数离开它minifier后不变。
例如:

I found that using -moz- prefix for calc function leaves it untouched after minifier. Example:

.some_class {
  width: calc(24.3% - 30px);
  width: -webkit-calc(24.3% - 30px);
  width: -moz-calc(24.3% - 30px);
}

变成了:

.some_class{width:calc(24.3%- 30px);width:-webkit-calc(24.3% - 30px);width:-moz-calc(24.3% - 30px)}

这篇关于是否有可能拒绝缩小一行(或地区)的CSS文件由微软的Ajax Minifier?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆