[英]how can i make series of divs show up next to each other instead of on top of each other?
我有一個包含多個 div 類的表單頁面,每個div
內稱為“輸入”是每個表單行的標簽和表單信息的input
其中之一的樣本:
<div class="inputs"> <label for="ProductDesc:_">ProductDesc: </label> <input disabled="disabled" id="invoices_ProductDesc" name="invoices.ProductDesc" readonly="readonly" type="text" value="Storage charge SC160-0000059 - 5.0 HCTZ0044 2018"> </div> <div class="inputs"> <label for="SKU:_">SKU: </label> <input disabled="disabled" id="invoices_ProductSKU" name="invoices.ProductSKU" readonly="readonly" type="text" value=""> </div>
現在的顯示是這樣的:
產品描述
信息在這里
單品
SKU在這里
我怎樣才能讓它變成
產品描述 SKU
信息在這里SKU在這里
我嘗試在輸入上使用float:right
,我也嘗試使用display:inline
但這似乎不起作用。
在它們周圍包裹另一個 div 並將其設置為 flexbox 容器,將其樣式設置為display: flex
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.