0
私はDojo ContentPaneの中にDojoボタンを持っています。Dojoボタンの幅(パーセント)
Dojoボタンの幅をパーセンテージで設定しましたが、有効になりません。
button = new dijit.form.Button({
id: "mybutton",
label: "title",
style: "width: 70%; top: 10px; left: 20px;"
}, ContentPane);
node = button.domNode;
node.style.position = "absolute";
node.style.left = "10px";
node.style.top = "20px";
node.style.width = "70%";
ボタンは、実際には70%幅のContentPaneを占めていないボタンの「ラベル」プロパティに基づいて表示します。
.claro .dijitButton .dijitButtonNode, .button {
width : 70%;
}
(使用しているどんなテーマ名と.claro交換):
を親ウィンドウがスタイリングされている方法は?火かき棒などを使ってボタンの幅を自分で変更しようとするとどうなりますか? – hugomg
インラインではなくブロックとして設定するのは違いますか? 'node.style.display ="ブロック ";' –