-1
你好的人,我怎麼能中心的輸出:如何在PHP中集中do_shortcode?
<?php echo do_shortcode("[aps-counter]");?>
這條線把反了,但它是左心。非常感謝你 !
你好的人,我怎麼能中心的輸出:如何在PHP中集中do_shortcode?
<?php echo do_shortcode("[aps-counter]");?>
這條線把反了,但它是左心。非常感謝你 !
只需包裝在容器中,並使用CSS輸出使其居中像這樣:
<?php echo "<div style='margin:0 auto;'>" . do_shortcode("[aps-counter]") . "</div>"; ?>
這是「HTML/CSS 101」的東西。 –
好吧,我做到了:d –