Flex中如何通过buttonStyleName样式自定义Alert显示的按钮风格的例子

接下来的例子演示了Flex中如何通过buttonStyleName样式,自定义Alert显示的按钮风格。

让我们先来看一下Demo可以右键View Source或点击这里察看源代码):

下面是完整代码(或点击这里察看):



@font-face {
src: local(“Comic Sans MS”);
fontFamily: myComicSansMS;
fontWeight: normal;
}

Alert {
buttonStyleName: myCustomButtonStyleName;
}

.myCustomButtonStyleName {
color: red;
cornerRadius: 12;
fontFamily: myComicSansMS;
fontSize: 10;
fontWeight: normal;
textDecoration: underline;
themeColor: red;
}





代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Leave a Reply

Your email address will not be published. Required fields are marked *