元素类型"样式"必须遵循属性规范,">"或" />

时间:2017-06-07 01:50:13

标签: javascript css xml styles

元素类型"样式"

Element type "style" must be followed by either attribute specifications, ">" or "/>"

当我保存xml代码(模板博主)时出现一些错误。请帮帮我

I have this code 
Prism.languages.css['atrule'].inside.rest = Prism.util.clone(Prism.languages.css);
    if (Prism.languages.markup) {
        Prism.languages.insertBefore('markup', 'tag', {
            'style': {
                pattern: /(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,
                lookbehind: true,
                inside: Prism.languages.css,
                alias: 'language-css'
            }
        });

收到错误:在样式

之后的
pattern: /(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,

我已尝试将代码<开始&lt;仍为错误

谢谢

0 个答案:

没有答案