加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flash - textarea组件的背景边框设置

发布时间:2020-12-15 07:08:32 所属栏目:百科 来源:网络整理
导读:TestArea组件背景透明,边框也透明。 myTextArea.depthChild0._visible = false; TestArea组件背景透明,边框不透明。 _global.styles.TextArea.backgroundColor = undefined; TestArea组件背景和边框的透明度。 myTextArea.depthChild0._alpha = 0; TestAre

TestArea组件背景透明,边框也透明。
myTextArea.depthChild0._visible = false;
TestArea组件背景透明,边框不透明。
_global.styles.TextArea.backgroundColor = undefined;
TestArea组件背景和边框的透明度。
myTextArea.depthChild0._alpha = 0;


TestArea组件背景颜色。
_global.styles.TextArea.backgroundColor = 0xff0000;

TestArea组件边框颜色。
myTextArea.setStyle("borderColor","0xff0000");//下
myTextArea.setStyle("highlightColor","0xff0000");//上
myTextArea.setStyle("color","0xff0000");//字
myTextArea.setStyle("shadowColor","0xff0000");//下
myTextArea.setStyle("borderCapColor","0xff0000");//左右外
myTextArea.setStyle("shadowCapColor","0xff0000");//左右内
myTextArea.setStyle("buttonColor","0xffffff"); //顶部?? (PS:这个是我补充的)


如下是我做过的设置
function cssInit(myTextArea:mx.controls.TextArea) {
myTextArea.enabled = false;?? //让文字不可选
myTextArea.setStyle("backgroundColor","0xffffff");
myTextArea.setStyle("fontSize","12");
myTextArea.setStyle("fontFamily","宋体");

//下面代码是让TextArea的边框不显示
myTextArea.setStyle("borderColor","0xffffff");
//下
myTextArea.setStyle("highlightColor","0xffffff");
//上
myTextArea.setStyle("color","0x333333");
//字
myTextArea.setStyle("shadowColor","0xffffff");
//下
myTextArea.setStyle("borderCapColor","0xffffff");
//左右外
myTextArea.setStyle("shadowCapColor","0xffffff");
//左右内
myTextArea.setStyle("buttonColor","0xffffff");
//top
}

如何既不显示边框也不显示背景,以及修改disabledColor var myTextArea = textinfo; myTextArea.text = "士大夫士大夫十分!"; myTextArea.vScrollPolicy = "off"; myTextArea.hScrollPolicy = "off"; myTextArea.depthChild0._visible = false;//设置背景和边框为透明 //myTextArea.html = true; //myTextArea.text = "商品房商品住宅量减价升!"; myTextArea.enabled = false; myTextArea.setStyle("disabledColor","0xffffff"); myTextArea.setStyle("fontSize","14"); myTextArea.setStyle("fontFamily","黑体"); myTextArea.setStyle("color","0xffffff"); myTextArea.setStyle("fontWeight","bold");

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读