点击演示地址。下面是核心代码:
<button dojoType="dijit.form.Button" onclick='console.log("big");' iconClass="flatScreenIcon">
<span style="font-size:xx-large">big</span>
</button>
<button id="smallButton1" dojoType="dijit.form.Button" onclick='console.log("small");'>
<img src="../dijit/tests/images/arrowSmall.gif" width="15" height="5">
<span style="font-size:x-small">small</span>
</button>
<button dojoType="dijit.form.Button" onclick='console.log("long");'>
<img src="../dijit/tests/images/tube.gif" width="150" height="16">
long
</button>
<button dojoType="dijit.form.Button" onclick='console.log("tall");' width2height="0.1">
<img src="../dijit/tests/images/tubeTall.gif" height="75" width="35"><br>
<span style="font-size:medium">tall</span>
</button>
效果图片如下:
