<button class="myClass">
<label style="width:500px">This is sample 1</label>
<img class="btnImg" src="images/list_item_arrow.png"/>
</button>
.myClass
{
opacity:0.3;
color:#30F;
height:50px;
width:90%;
font-size:20px;
text-decoration:blink;
font-family:"Arial Black", Gadget, sans-serif;
}
标签不占用宽度,因此提供。 要求是:如果按钮在%或px中占用一些宽度,我们可以在右端显示图像。 在此先感谢Nest标签内部Html5按钮标签