rexseeBrowserStyle
返回手册目录
【函数】void setStyle(String style)
【说明】设置浏览器样式。
【返回】
【参数】style:样式表。
【示例】
rexseeBrowserStyle.setStyle('margin:10px;padding:10px;border-width:10px;border-color:#FF0000;');
运行示例 恢复

【函数】String getStyle(String name)
【说明】读取浏览器样式的设置值。
【返回】样式的设置值。
【参数】name:要读取的样式的名称。
【示例】
alert(rexseeBrowserStyle.getStyle('width')+','+rexseeBrowserStyle.getStyle('height'));
运行示例

【函数】String getCurrentStyle(String name)
【说明】读取浏览器样式的当前值。
【返回】样式的当前值。
【参数】name:要读取的样式的名称。
【示例】
alert(rexseeBrowserStyle.getCurrentStyle('width')+','+rexseeBrowserStyle.getCurrentStyle('height'));
运行示例

【函数】void startAnimation(String style)
【说明】启动浏览器动画。
【返回】
【参数】style:样式表。
【示例】 浏览器平移一次:
rexseeBrowserStyle.startAnimation('animation-type:translate;animation-duration:1000;animation-repeat-count:1;animation-repeat-mode:reverse;animation-translate-x-from:0;animation-translate-x-to:0;animation-translate-y-from:0;animation-translate-y-to:-100;animation-center-x:0;animation-center-y:0;');
运行示例
浏览器放大缩小一次:
rexseeBrowserStyle.startAnimation('animation-type:scale;animation-duration:1000;animation-repeat-count:1;animation-repeat-mode:reverse;animation-scale-x-from:1;animation-scale-x-to:2;animation-scale-y-from:1;animation-scale-y-to:2;animation-center-x:50;animation-center-y:50;');
运行示例
浏览器渐隐渐显一次:
rexseeBrowserStyle.startAnimation('animation-type:alpha;animation-duration:1000;animation-repeat-count:1;animation-repeat-mode:reverse;animation-alpha-from:100;animation-alpha-to:0;');
运行示例
浏览器旋转一次:
rexseeBrowserStyle.startAnimation('animation-type:rotate;animation-duration:1000;animation-repeat-count:1;animation-repeat-mode:reverse;animation-rotate-from:-360;animation-rotate-to:0;');
运行示例

【函数】void stopAnimation()
【说明】停止浏览器动画。
【返回】
【参数】
返回手册目录