简体   繁体   English

CSS Div表位置问题

[英]CSS Div Table Position Issues

My problem is, if you head to you will see in the table that 4,9,10 are slightly tilted towards left which I have no clue why? 我的问题是,如果您直接去看表,会看到4,9,10稍微向左倾斜,我不知道为什么? Can you please check and suggest what I can do to fix this. 能否请您检查一下并提出我可以解决的建议。

I'm using table format because I want everything to be vertically aligned and have no other alternative (unless someone else comes up with any). 我使用表格格式,是因为我希望所有内容都垂直对齐并且没有其他选择(除非其他人提出了其他选择)。 I am also using bootstrap. 我也在使用引导程序。

Try adding a width to your "letstest" class: 尝试为您的“ letstest”类添加宽度:

.letstest {
    display: table;
    height: 100%;
    table-layout: fixed;
    width: 100%;
}

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

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