2 回答

TA貢獻(xiàn)1883條經(jīng)驗(yàn) 獲得超3個(gè)贊
使用第二種方法,在外層加VBOX,設(shè)置VBox 的屬性verticalGap="2"(像素)
具體設(shè)置的值由您的需求決定,這個(gè)屬性是設(shè)置vbox中的行間距的。
希望對(duì)你有所幫助
代碼如下
<mx:VBox verticalGap="2">
<mx:HBox>
<mx:Label text="名稱(chēng){vmnamecn1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="內(nèi)存總量:{vmtotalmemory1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="內(nèi)存平均利用率:{avgmemoryutilization1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="內(nèi)存峰值利用率:{peakmemoryutilization1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="磁盤(pán)總量:{vmtotalharddisk1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="磁盤(pán)利用率:{harddiskutilization1}"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="預(yù)裝軟件:{softrequestname1}" width="150"/>
</mx:HBox>
</mx:VBox>

TA貢獻(xiàn)1810條經(jīng)驗(yàn) 獲得超4個(gè)贊
HBOX繼承了BOX的一個(gè)樣式:
verticalGap 類(lèi)型: Number 格式: Length CSS 繼承: no
垂直方向上各子項(xiàng)間的像素?cái)?shù)目。默認(rèn)值取決于組件類(lèi);如果未覆蓋類(lèi)的默認(rèn)值,則默認(rèn)值為 6。
你可以通過(guò)設(shè)置這個(gè)樣式試試。
- 2 回答
- 0 關(guān)注
- 1388 瀏覽
添加回答
舉報(bào)