Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/402.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
Javascript Magento 2中的可折叠js是否接受css图标内容:“;内容:”\e622和x201C”;;?_Javascript_Css_Collapse_Magento2 - Fatal编程技术网

Javascript Magento 2中的可折叠js是否接受css图标内容:“;内容:”\e622和x201C”;;?

Javascript Magento 2中的可折叠js是否接受css图标内容:“;内容:”\e622和x201C”;;?,javascript,css,collapse,magento2,Javascript,Css,Collapse,Magento2,当我插入内容时,我会得到一个空格:“\e622”;当我输入内容时会得到加号:“+” 我在集成可折叠小部件时偶然发现了这一点。如果是自定义类,则需要确保已将CSS代码包装在该类周围。这是我的CSS .sidebar .outer-box .plus::before { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 13px; line-h

当我插入内容时,我会得到一个空格:“\e622”;当我输入内容时会得到加号:“+”

我在集成可折叠小部件时偶然发现了这一点。如果是自定义类,则需要确保已将CSS代码包装在该类周围。这是我的CSS

    .sidebar .outer-box .plus::before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    line-height: inherit;
    color: inherit;
    content: '\e61c';
    font-family: 'icons-blank-theme';
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: right;
    position: absolute;
    left: -10px;
}
这是驻留在.phtml文件中的可折叠html代码

<div class="outer-box" data-mage-init='{
    "collapsible":{
        "openedState": "active",
        "animate":{ "duration" :500, "easing":"easeOutCubic"},
        "icons": {"header": "plus", "activeHeader": "minus"}
    }}'>
</div>

我在集成可折叠小部件时偶然发现了这一点。如果是自定义类,则需要确保已将CSS代码包装在该类周围。这是我的CSS

    .sidebar .outer-box .plus::before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    line-height: inherit;
    color: inherit;
    content: '\e61c';
    font-family: 'icons-blank-theme';
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: right;
    position: absolute;
    left: -10px;
}
这是驻留在.phtml文件中的可折叠html代码

<div class="outer-box" data-mage-init='{
    "collapsible":{
        "openedState": "active",
        "animate":{ "duration" :500, "easing":"easeOutCubic"},
        "icons": {"header": "plus", "activeHeader": "minus"}
    }}'>
</div>