选项卡的间距不一致,这在所有浏览器(Chrome、Firefox 和 IE)中都会发生。我有两个相似的链接。我的目标是让它们都居中。
http://cimbth-pub-uat.mirum-apac.com/content/cimbconsumerthai/en/personal/support/help-and-support/tools/personal-loan-calculator.html
和 http://cimbth-pub-uat.mirum-apac.com/content/cimbconsumerthai/th/personal/support/help-and-support/tools/personal-loan-calculator.html
想知道如何将两个选项卡居中? 任何帮助将不胜感激。
最佳答案
使用以下内容:
将每个列表项的宽度设置为 50%,这样您的列表项宽度相等,然后文本将在每个列表项中居中
.shared-nav .tab-nav li {
width: 50%;
}
关于javascript - 选项卡对齐问题 - 不居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38734346/