Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好 是否可以在actionscript中为表单元素设置margintop?
var frm:Form = new Form(); frm.setStyle("marginTop", 20);
还是这样的?
谢谢
你几乎拥有它。您需要设置paddingTop, 而不是marginTop.
paddingTop
marginTop
所以:
var frm:Form = new Form(); frm.setStyle('paddingTop', 20);