我有兩個片段,我想並排。但第二部分拒絕浮動應該在哪裏?CSS浮動不浮動?
<div>
<div style="width:320px; height: 240px; float:left;">
<div id="webcam" style="border: 1px dotted #000;"></div>
<div style="margin:5px;">
<img src="/img/webcamlogo.png" style="vertical-align:text-top"/>
<select id="cameraNames" size="1" onchange="changeCamera()" style="width:245px font-size:10px;height:25px;"></select>
</div>
</div>
<!-- This part refuses to float to the right side of the upper content? -->
<div style="width:320px;height:240px; border: 1px dotted #000;">
<img id="visitorImage" style="width:320px;height:240px;" alt=""/>
<asp:HiddenField ID="hdnVisitorImage" runat="server" />
</div>
</div>
任何想法?
是視(或容器)足夠寬,以適應兩個div?否則默認是斷線...... – LcSalazar 2014-09-23 16:34:14
'但第二部分拒絕浮動'第二個區域沒有'浮動'。 – 2014-09-23 16:37:06