簡體   English   中英

如何在Flex中更改DateChooser的左/右箭頭按鈕樣式

[英]How do I change the left/right arrow button styles for a DateChooser in flex

我的DateChooser代碼及其樣式代碼如下所示:

<mx:DateChooser id="dc" cornerRadius="0" bottom="0" width="100%" allowMultipleSelection="true" 
                        allowDisjointSelection="false" styleName="dateChooserGradient" 
                        change="fetchDateAgenda(dc.selectedDate)"
                        />

和dateChooserGradient:

.dateChooserGradient
{
    header-colors: #133c59, #29506c;        
    todayStyleName: myTodayStyleName;
    headerStyleName: myHeaderStyleName;
    weekDayStyleName: myWeekDayStyleName;
    dropShadowEnabled: false;
    arrowBorderThickness:2;
    arrowColor: #062338;
    arrowAlpha: 0.1;
}

我實際上想要的箭頭是透明的背景,borderthickness為2,箭頭和bordercolor為#062338。 另外,如果我可以使箭頭本身的寬度和高度稍大一點,那么它就是默認值。

謝謝和問候〜Z〜

有幾種使用PNG的“皮膚”樣式。 例如,下個月的按鈕是“ nextMonthUpSkin”和“ nextMonthDownSkin”等。對於CSS中的這些屬性,您只需提供一個PNG文件。

這是來自FlexCoders的示例: http ://blog.flexexamples.com/2007/12/16/changing-the-next-and-previous-month-navigation-icons-on-a-datefield-control-in-flex /

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM