簡體   English   中英

如何添加<p>餐桌后? (php/JS/wordpress)</p>

[英]How to add <p> after table? (php / JS / wordpress)

我想在table后面加上p tage或者換行,這樣table和div里面的內容就可以分兩行顯示了。
目前它們顯示在一行中,非常混亂(i.imgur.com/7cnQhou.jpg)。
你能告訴我如何使用 php 或 JS 來做嗎?

 <div class="woocommerce-variation"> <input type="hidden" id="thwepof_product_fields" name="thwepof_product_fields" value="test2"> <table class="thwepo-extra-options thwepo_variable" cellspacing="0"> <tbody><tr class=""><td class="label leftside"></td> <td class="value leftside"> <input type="text" id="test2" class="thwepof-input-field"> </td></tr> </tbody> </table> <div class="quantity"> <input type="number" id="quantity_60" class="input-text qty" inputmode="numeric"> </div> <button type="submit" class="single_add_to_cart_button">Add to cart</button> </div>

謝謝你。

tablediv標簽都是塊級元素。 它們默認顯示為兩行。

下面是運行代碼的結果。

代碼運行結果

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM