WordPress 会忽略 CSS 中的某些参数

发布于 2025-01-18 17:15:59 字数 162 浏览 2 评论 0原文

当我写这篇文章时: .myform {display:inline;边界:1px;颜色:蓝色; }

在我的WordPress儿童主题中的自定义CSS文件中,屏幕上只出现蓝色。

我尝试写作!旁边很重要,但它仍然不起作用,我无法弄清楚为什么这些参数不起作用

When I write this :
.myform{ display:inline; border: 1px; color : blue; }

in a custom css file in my Wordpress child theme , only the blue color appears on the screen.

I tried writing !important next to it but it still doesn't work and I can't figure out why those parameters aren't working

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

(り薆情海 2025-01-25 17:15:59

尝试检查您的元素并在控制台中添加这些CSS代码,这是您希望表单显示的方式吗?
其次,您可以使用 !important 强制读取此 css 代码

 .myform{     display:inline !important;     border: 1px !important;     color : blue !; } 

try to inspect your element and add these css codes inside your Console, is that it the way you want your form to be displayed in?
secondly, you can use the !important to Force this css Code to be read

 .myform{     display:inline !important;     border: 1px !important;     color : blue !; } 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文