【发布时间】:2014-07-16 05:41:58
【问题描述】:
在 Flex 4 中,我有一个我想通过 css 设置边框宽度的画布。我可以设置边框颜色和边框样式,但是边框宽度无论如何都保持1像素宽。
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Style source="global.css" />
<mx:Canvas id="login_panel" width="300" height="200">
<s:Label text="hi there"/>
</mx:Canvas>
global.css:
#login_panel {
border-weight:5px;
border-color:#00ff00;
border-style:solid;
}
【问题讨论】:
-
你不能在那里使用 BorderContainer 有什么原因吗?如果您使用的是 Spark 主题,那么边框厚度似乎不是 Canvas 支持的样式。
-
看起来这将是要走的路。感谢您的帮助艾米。非常感谢。
标签: apache-flex