0

次のような画像ボタンがあります。

私の画像ボタン

画像ボタンのコードは次のとおりです。

var button = new qx.ui.form.Button(null, "myapp/test.png");
container.add(button, { left: 10, top: 10 });

ボタンの境界線とパディングを削除するには? 画像だけ表示したい。

注:containerですqx.ui.layout.Canvas

4

1 に答える 1

2

ボーダーとパディングは、null 可能なボタンのデコレーターによって定義されます。

button.setDecorator(null);
于 2013-05-03T10:47:23.100 に答える