【问题标题】:error parsing stylesheet c:\\path\demo\src\demo.xxml in flex在 flex 中解析样式表 c:\\path\demo\src\demo.xxml 时出错
【发布时间】:2011-04-18 14:11:08
【问题描述】:

我在我的 xxml 应用程序中包含 css 代码,但我收到错误错误解析样式表 c:\path\demo\src\demo.xxml 下面是我的代码,提前感谢您的帮助

<mx:Style>
    .friendRendererToolTip
    {
        borderStyle : errorTipAbove;
        paddingTop : 3;
        borderColor : 0;
        fontSize : 11;
        paddingLeft : 1;
        backgroundAlpha : 1;
        paddingRight : 12;
        fontWeight : bold;
        height : 33;
        dropShadowEnabled : false;
        color : 16777215;
        alpha : 1;
        paddingBottom : 3;
    }

    Button
    {
        borderStyle : solid;
        borderColor : 5661305;
        color : 0;
        backgroundColor : 14540253;
        cornerRadius : 0;
        fontSize : 13;
        fillAlphas : [1, 0.31, 1, 1];
    }

    .maincontainer
    {
        borderStyle : solid;
        borderColor : 6453933;
        backgroundColor : 15593460;
        cornerRadius : 5;
        verticalGap : 0;
    }

    .mainheader
    {
        paddingTop : 1;
        verticalAlign : middle;
        paddingLeft : 11;
    }

    global
    {
        color : 0;
        fontFamily : Tahoma;
        fontSize : 13;
    }

    .1Slot
    {
        backgroundColor : 16777215;
    }

    .maincontent
    {
        paddingLeft : 9;
        paddingRight : 9;
    }

    Label
    {
        color : 0;
        fontSize : 13;
    }

    .yButton
    {
        cornerRadius : 5;
    }

    ToolTip
    {
        cornerRadius : 0;
    }

    .activityArea
    {
        borderStyle : solid;
        borderColor : 10859729;
        backgroundColor : 16777215;
        disabledColor : 15987699;
    }
</mx:Style>

【问题讨论】:

  • 你有什么特别的错误?请在此处粘贴。

标签: apache-flex flex3 flex4 flexbuilder


【解决方案1】:

对颜色使用 CSS 标准,例如 #FF00FF

【讨论】:

    【解决方案2】:

    您需要使用&lt;![CDATA[]]&gt; 包装您的样式。 errorTipAbove 不存在。所有颜色的格式都不正确,请使用 #RRGGBB 十六进制格式。这就是我所能看到的。尝试删除/注释掉行,直到你看到它有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-02
      • 1970-01-01
      • 2021-03-15
      • 1970-01-01
      • 2018-09-29
      • 1970-01-01
      • 2022-06-13
      • 2018-03-06
      相关资源
      最近更新 更多