在div背景中对齐表

时间:2017-09-04 14:10:56

标签: html css3 responsive-design

我正在尝试在div背景中对齐表格,并且必须做出响应。

这就是我想要的: enter image description here

编辑: 我想把桌子放在图像的深蓝色背景上,并且总是必须在那里,无论分辨率如何,所以必须要有回应

这是表css

.tg {
  color: white;
  width: 485px;
  position: absolute;
  bottom: 109px;
  left: 266px;
  top: auto;
  right: auto;
  height: 336px;
}

这里有代码:Fiddle

请帮忙!

1 个答案:

答案 0 :(得分:-1)

试试这个,这就是我所理解的 更新了小提琴:https://jsfiddle.net/k0nxxuw2/4/

代码已更改:
更新了

    .tg {
        color: white;
        width: 485px;
        position: absolute;
        bottom: 109px;
        left: 266px;
        top: auto;
        right: auto;
        height: 336px;
}


有了

.tg {
    color: white;
    width: 485px;
    position: absolute;
    bottom: 109px;
    left: 266px;
    top: auto;
    right: auto;
    height: 336px;
    padding-top:200px
}
相关问题