简体   繁体   English

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

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

I would like to add p tage or line break after table, so that contents in table and div can display in two lines.我想在table后面加上p tage或者换行,这样table和div里面的内容就可以分两行显示了。
At the moment they display in one line which is very messy (i.imgur.com/7cnQhou.jpg).目前它们显示在一行中,非常混乱(i.imgur.com/7cnQhou.jpg)。
Would you please let me know how to do it using php or JS?你能告诉我如何使用 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>

Thank you.谢谢你。

table and div tag are both block level element. tablediv标签都是块级元素。 They display in two lines in default.它们默认显示为两行。

Below is the result of running your code.下面是运行代码的结果。

代码运行结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM