0

我正在尝试用 html 将两个按钮一个放在另一个里面。我试过这个:

<div id="photoShow" style="width: 190px; height: 212px">   
   <input type="button" runat="server" id="btn_ShowImage" style =" background-image: url('photos/Analog50.jpg'); width: 55px; height: 54px;"  
           onclick="return btn_ShowImage_onclick()" /><asp:Button 
        ID="btn_AddProductToReservation" Height="180px" Width="194px"   
        runat="server" style="margin-top: 0px; margin-left: 0px;" /> 
  </div>

很想得到一些帮助,谢谢

4

2 回答 2

2

将它们放在这样的 div 中:

<div style="float:left"><button></button><button></button></div>

所以你可以把它们放在一边,把按钮放在一起是没有意义的!

于 2013-07-14T10:33:54.400 回答
0

如果你使用 twitter bootstrap,你可以将这些按钮放在另一个里面:

<div class="btn btn-primary btn-large">
    out out 
  <div class="btn btn-primary btn-large">
    in in
    </div>
    out out 
  <div class="btn btn-primary btn-large">
    in in
    </div>
    out out 
</div>

它将按预期呈现

于 2013-07-14T10:38:14.213 回答