gpt4 book ai didi

jquery - 需要将 Bootstrap 菜单图标放在右侧

转载 作者:太空宇宙 更新时间:2023-11-04 08:22:53 24 4
gpt4 key购买 nike

我正在关注我网站上的以下 Bootstrap 菜单项。我需要将我的菜单图标放在页面的右上角。如何更改代码?

#menu {
position: relative;
color: #999;
width: 200px;
padding: 10px;
margin: auto;
font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
text-align: center;
border-radius: 4px;
background: white;
box-shadow: 0 1px 8px rgba(0,0,0,0.05);
/* just for this demo */
opacity: 0;
visibility: hidden;
transition: opacity .4s;
}
#menu:after {
position: absolute;
top: -15px;
left: 95px;
content: "";
display: block;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 20px solid white;
}

Codepen

最佳答案

像这样更改 #toggle css,

#toggle {
margin: 30px 10px 0px auto; // changed line
}

希望有所帮助,

关于jquery - 需要将 Bootstrap 菜单图标放在右侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45409527/

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