简体   繁体   English

如何防止 Wordpress 显示 Google Org Chart 行线?

[英]How to prevent Wordpress from showing Google Org Chart row lines?

I am using the Google Org Chart and I am having an issue with row lines being displayed once I put this into WordPress (see image).我正在使用Google 组织结构图,一旦我将其放入 WordPress(见图),我就会遇到显示行行的问题。 Using the same code outside of the company Wordpress site does not show these lines.在公司 Wordpress 站点之外使用相同的代码不会显示这些行。 One thing I find intriguing is how three of the lines are light blue while the rest are grey.我觉得有趣的一件事是其中三条线是浅蓝色的,而其余的线是灰色的。 I tried using this as a clue in my debugging, but I still was not able to turn up anything.我尝试在调试中使用它作为线索,但我仍然无法找到任何东西。

Is there anything that I can add in the CSS for that page to override this and prevent those lines from showing?我可以在该页面的 CSS 中添加任何内容来覆盖它并阻止这些行显示吗?

显示的行

It is probably inheriting styles from your theme CSS.它可能是从您的主题 CSS 继承样式。 And it is most probably your table styles.这很可能是您的表格样式。 Without some code or a URL to look at it will be difficult to assist.如果没有一些代码或 URL 来查看,将很难提供帮助。 One thing you can do is inspect the code via the browser inspector.您可以做的一件事是通过浏览器检查器检查代码。 That will show you where the styles are coming from.这将向您显示样式的来源。

You can try adding this code to your Customizer Custom CSS section to see if that helps.您可以尝试将此代码添加到定制器自定义 CSS 部分,看看是否有帮助。

 td, tr{
    border:none;
 }

This code will remove the borders from all your tables though so if it works for you try adding this code instead.此代码将从您的所有表格中删除边框,因此如果它适用于您,请尝试添加此代码。

.google-visualization-orgchart-table tr{
    border:none;
 }

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

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