0
我正在嘗試在StoreFront中構建一個頁腳。我寫一段代碼,添加HTML'flex'在Woocomerce中覆蓋的CSS
add_action('init', 'custom_remove_footer_credit', 10);
function custom_remove_footer_credit() {
remove_action('storefront_footer', 'storefront_credit', 20);
add_action('storefront_footer', 'custom_storefront', 20);
}
function custom_storefront() {
?>
<div id = "wizfooter" class ="wiz-footer-container">
<div class ="wiz-footer-left">
<p>My HTML 1</p>
</div>
<div class ="wiz-footer-right">
<p>My HTML 2</p>
</div>
</div> <!--wiz-footer-container-->
<?php
}
而且我已經使用了下面的CSS
.wiz-footer-container {
display: flex;
display: -webkit-flex;
flex-flow: row nowrap;
-webkit-flex-flow: row nowrap;
justify-content: space-around;
-webkit-justify-content: space-around;
}
.wiz-footer-container div {
flex: 1;
-webkit-flex: 1;
width: 400px;
}
.wiz-footer-container div:nth-of-type(1n+2) {
margin-left: 20px;
}
然而顯示:彎曲;並且所有其他Flex屬性都被覆蓋,但-webkit-display Flex屬性不是?
任何想法?我正在使用Chrome和本地服務器(WAMP)
非常感謝!非常有幫助 – Cheerychops