我現在最難找到一種方法來簡單地向TabNavigator控件添加四捨五入的選項卡。Flex 4.5 TabNavigator cornerRadius不能正常工作
我看過一些看起來非常簡單的例子,但它們似乎在Flex 4.5中不起作用。下面是一些示例代碼:
<?xml version="1.0" encoding="utf-8"?>
<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="style.css"/>
<mx:TabNavigator x="93" y="90" width="571" height="293" tabStyleName="tabstyle">
<s:NavigatorContent width="100%" height="100%" label="Tab 1">
</s:NavigatorContent>
</mx:TabNavigator>
</s:Application>
和CSS:
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
.tabstyle
{
corner-radius: 10;
}
我還試圖cornerRadius:10;
任何想法,爲什麼這是行不通的?任何容易遵循的解決方案(我是一個初學者)。
謝謝。
心中已經試過cornerRadius但只設置上的內容面積不得標籤的半徑。 – user1003505
問題是關於選項卡舍入,而不是內容。 –