当我将html复制到wordpress时,为什么我的项目会垂直移动?

时间:2017-08-19 03:31:30

标签: html css wordpress

我制作了一个本地测试页面来布局图像和内容并使事情正确。但是,当我将代码移动到我的wordpress网站时,图像行现在是列。我已经创建了独特的类和ID名称,因此它不是现有的CSS。 我应该寻找什么?

这是我的本地代码:

 {
  "name": "Lao Lao",
  "title": "general manager",
  "children": [
    {
      "name": "Bo Miao",
      "title": "department manager",
      "children": [
        {
          "name": "Li Jing",
          "title": "senior engineer"
        },
        {
          "name": "Li Xin",
          "title": "senior engineer",
          "children": [
            {
              "name": "To To",
              "title": "engineer"
            },
            {
              "name": "Fei Fei",
              "title": "engineer"
            },
            {
              "name": "Xuan Xuan",
              "title": "engineer"
            }
          ]
        }
      ]
    },
    {
      "name": "Su Miao",
      "title": "department manager",
      "children": [
        {
          "name": "Pang Pang",
          "title": "senior engineer"
        },
        {
          "name": "Hei Hei",
          "title": "senior engineer",
          "children": [
            {
              "name": "Xiang Xiang",
              "title": "UE engineer"
            },
            {
              "name": "Dan Dan",
              "title": "engineer"
            },
            {
              "name": "Zai Zai",
              "title": "engineer"
            }
          ]
        }
      ]
    }
  ]
} 

和css:

{name =  Lao lao , parent = null , level = 1 }
{name =  Bao Miao , parent = Lao lao , level = 2 }
..................................................
{name =  Li Jing  , parent = Bao Miao , level = 3 }

在我的本地计算机上,它看起来像第一张图片。当我将代码移植到wordpress时,它看起来像第二个。

What I want it to look like; horizontal What it looks like on Wordpress

1 个答案:

答案 0 :(得分:0)