自定义Alert样式
来源:互联网 发布:2013年网络流行歌曲 编辑:程序博客网 时间:2024/05/17 04:45
c.mxml
<?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"
xmlns:view="*"
minWidth="955" minHeight="600">
<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
.alertMessage{
fontSize:14;
fontFamily:宋体;
color:#228A11;
}
.alertButton {
fontSize: 13;
fillAlphas: 1.0, 1.0;
fillColors: #FFFFFF, #BAE0F9;
}
.alertTitle{
fontSize: 13;
color:#ffffff;
fontWeight:bold;
}
mx|Alert{
backgroundColor:#FFFFFF;
backgroundAlpha: 1.0;
color: #323232;
borderColor: #7CBCEC;
headerHeight:30;
headerColors:#7CBCEC,#2C56B3;
dropShadowColor:#7CBCEC;
themeColor: #7CBCEC;
/* window backgroud except the alert window*/
modalTransparencyColor: #ffffff;
dropShadowEnable:true;
borderThicknessLeft:1;
borderThicknessRight:1;
borderThicknessBottom:0;
paddingBottom: 20;
messageStyleName:alertMessage;
titleStyleName:alertTitle;
buttonStyleName: alertButton;
}
</fx:Style>
<view:d id="ddsfd">
</view:d>
</s:Application>
d.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function button1_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
Alert.show("提示","确认点击");
}
]]>
</fx:Script>
<s:Button label="按钮" click="button1_clickHandler(event)">
</s:Button>
</mx:Canvas>
- 自定义ALERT样式
- 自定义Alert样式
- 自定义Alert样式
- 自定义alert样式
- 自定义alert样式
- 重写js 的alert,自定义alert的样式,定时关闭
- alert 样式自定义,div半透明遮盖
- 利用Javascript的“函数重载”实现自定义Alert样式
- Flex中自定义Alert控件按钮(Button)样式的例子
- Flex中自定义Alert控件按钮(Button)样式的例子
- 类似alert与confirm的自定义提示框样式
- [JS]JS模拟Alert弹出框效果--自定义CSS样式
- 自定义Alert
- 自定义Alert
- 自定义alert
- ios一个简单的自定义密码输入框,alert样式和sheet样式
- 改变Alert的样式
- 改写alert样式
- 博客搬家
- oracle函数大全 oracle所有函数举例说明
- Ogre中Fresnel例子分析
- const_cast的应用
- USB接口IC读写器oem软件_AB密码完整解决方案/读写卡测试程序及源代码/c++builder源代码(2)
- 自定义Alert样式
- android 动态布局
- url伪静态 重写
- Unity 四元数
- TCP连接探测中的Keepalive 和心跳包
- 输入的字符串格式不正确
- 用C++设计一个不能被继承的类
- DWR基本使用
- 生成随机数