简体   繁体   中英

How to remove default style of header in wordpress metabox

I have the problem which when I create a header in my wordpress plugin metabox, it always apply the default style on my header: 在此处输入图片说明

even when I apply, my own style, <h3 style="background-color: black; color:blue">Text Block Settings</h3> , it only changes the text color but not the background color, why??

在此处输入图片说明

This seems like a CSS Specificity issue although without access to the source code I can't tell what's going on.

Since it seems like you want a very hack-ey fix, try <h3 style="background:black !important; color:blue">Text Block Settings</h3> and see if that works (normally you should avoid using !important but if this is a one-off override it can be alright).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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