gpt4 book ai didi

jquery - 如何通过CSS居中子菜单?

转载 作者:行者123 更新时间:2023-11-28 08:40:41 25 4
gpt4 key购买 nike

我如何居中对齐子菜单容器,我试过 margin-left 但失败了。

enter image description here

#moz_page .moz_menu_items ul {
position: absolute;
top: -9999px;
display: block;
width: 220px;
background-color: #F6D9E8;
background: rgba(246,217,232,1);
margin: 0;
padding: 0;
list-style: none;
}

网站网址:http://bvlaserspa.com/beta/

任何帮助将不胜感激。

最佳答案

您可以使用 left 将其向左移动:

试试这个

#moz_page .moz_menu_items ul {
position: absolute;
top: -9999px;
display: block;
width: 220px;
background-color: #F6D9E8;
background: rgba(246,217,232,1);
margin: 0;
padding: 0;
list-style: none;

left: -50px; // you can adjust it for your purpose
}

希望对您有所帮助。

关于jquery - 如何通过CSS居中子菜单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27821349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com