Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css IE无法识别.less文件_Css_Less - Fatal编程技术网

Css IE无法识别.less文件

Css IE无法识别.less文件,css,less,Css,Less,我创建了一个更少的文件,它在chrome和firefox中运行良好,但在IE9中甚至无法识别。谁能建议一下在IE 9.0中运行它需要什么。下面是css示例 @import "../core/variables.less"; @import "Mixins.less"; .classname { @fontweight:bold; @width:99.9%; @height:67px; @color:#D3E2F2; @icon-width:10px;

我创建了一个更少的文件,它在chrome和firefox中运行良好,但在IE9中甚至无法识别。谁能建议一下在IE 9.0中运行它需要什么。下面是css示例

@import "../core/variables.less"; @import "Mixins.less";

.classname {

    @fontweight:bold;
    @width:99.9%;
    @height:67px;
    @color:#D3E2F2;
    @icon-width:10px;
    @icon-height:10px;

    .div-carddropdownbox{
             width:90%;
        }
    .span(@fontweight)
    {
        font-weight:@fontweight;
    }
     .span-underline(){
            .span(bold);
            text-decoration:underline;
        }
     .span-bold{
           .span(bold);
            text-decoration:none;
            font-size: 15px;
        }

    .div(@width,@height)
    {
        float:left;
        width:@width;
        height:@height;  
        padding-top: 10px;  
        padding-bottom: 10px;  
    }
    .div-tracethistransaction
    {
        .div(100%,100%);
        border:1px solid black; 
    }
    .div-servicerequestcharge{
           .div(99.9%,67px);    
            background-color:@color;
            border:1px solid black;
    }
    .div-account
    {
            .div(99.9%,35px);    
            background-color:@color;

    }
    .div-white-blank
    {
         .div(99.9%,2px);
    }
    .div-button
    {
        padding-top:110px;
    }
    .div-carddelivered
    {
        .div(100%,45px); 

    }

    .icon(@icon-width,@icon-height)
    {
            width:@icon-width;
            height:@icon-height;
    }
    .div-icon
    {
        .icon(20px,20px);
        padding-left: 580px;
    }

    .round-button-cancel {
        .rounded-button (7px, #ECECEC, #A9A9A9,none, bold, #52504C,
90px, 35px);
    }

    .round-button-submit {
        .rounded-button (7px, #FAF5E9, #EFAE2C,none, bold, #8B4513,
Auto, 35px);
    }

} 

我遇到了同样的问题。我只是将它编译成一个
.css
文件,并引用该文件进行实时测试,包括IE。

我遇到了同样的问题。我只需将其编译成一个
.css
文件,并引用该文件进行实时测试,包括IE。

确保包含less.js脚本。需要解析更少的文件。

如果这是一个.NET项目,并且您不想使用更少的.js(这会为更大的.less文件增加客户端开销),那么您可以将无点库添加到您的项目中。

确保包含了less.js脚本。需要解析更少的文件。

如果这是一个.NET项目,并且您不想使用更少的.js(这会为更大的.less文件增加客户端开销),那么您可以将无点库添加到您的项目中。

检查,它说它不支持IE。没有它的任何版本。

检查,它说它不支持IE。没有它的任何版本。

你确实包含了less.js,对吗?我是less的新手,在我的解决方案中没有找到less.js文件。你能告诉我这个less.js文件做什么吗?在哪里下载这个文件?如果你有脚本,但它仍然不能工作,我无法进一步帮助。也许其他人可以。你确实包含了less.js,对吗?我是less的新手,在我的解决方案中没有找到less.js文件。你能告诉我这个less.js文件做什么吗?在哪里下载这个文件?如果你有脚本,但它仍然不能工作,我无法进一步帮助。也许其他人可以。