2017-09-04 32 views
-1

我想對齊div背景中的表格,並且必須是響應式的。在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

試試這個,這是我的理解
更新小提琴: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 
} 
+0

讓犯錯或者你得到的消息不只是粘貼到jquery的鏈接是有原因的... – Liam

+0

這是不好的。我想把這張桌子放在圖像的深藍色背景上,並且總是必須在那裏,分辨率無關緊要,所以必須要有響應。 –