简体   繁体   English

WordPress style.css 中的预期 RBRACE 错误

[英]Expected RBRACE error in WordPress style.css

I am using WordPress 5.3.1 and I am getting the issue in css while creating a grid.我正在使用 WordPress 5.3.1,并且在创建网格时遇到了 css 中的问题。

Expected RBRACE预期 RBRACE

Screenshot截屏

在此处输入图片说明

This is the code I am using.这是我正在使用的代码。 It's working on local server but getting the issue on WordPress style.css它正在本地服务器上运行,但在 WordPress style.css 上出现问题

.cp-seeWrapper ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 10px;
    }

Would you help me out with a solution?你能帮我解决一下吗?

Here is the code.这是代码。 Hope it will help you.希望它会帮助你。 If any changes please let me know.Use grid: 50% 50% / repeat(2, 50%);如果有任何变化请告诉我。使用网格:50% 50% / repeat(2, 50%); . . It solves your problem.它解决了你的问题。

https://jsfiddle.net/bny5eq03/2/ https://jsfiddle.net/bny5eq03/2/

 .exclusive-content ul{ display: grid; grid: 50% 50% / repeat(2, 50%); justify-content: center; grid-gap: 10px; }
 <div class="exclusive-content"> <ul> <li>Hello</li> <li>Hello</li> </ul> </div>

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

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