1

Ext.panel.AbstractPanelViewクラスにはpaddingbodyPaddingプロパティがあります。

どちらも同じように動作するようです。

違いは何ですか?

4

1 に答える 1

3

ドキュメントによると: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.panel.Panel-cfg-bodyPadding

padding : Number/String
Specifies the padding for this component. The padding can be a single numeric value to apply     to all sides or it can be a CSS style specification for each style, for example: '10 5 3 10'.


bodyPadding : Number/String
A shortcut for setting a padding style on the body element. The value can either be a number to be applied to all sides, or a normal css string describing padding.

したがって、違いは、どの要素のパディングが適用されるかです。

于 2012-12-25T12:59:35.507 に答える