gpt4 book ai didi

html - zurb foundation 6 导航栏(顶部栏)中的用户头像

转载 作者:行者123 更新时间:2023-11-28 16:24:31 25 4
gpt4 key购买 nike

我在顶部栏中有一个用户的头像,但箭头在右边。左边怎么弄?我无法在任何地方找到那个 css。看图:

enter image description here

使用的代码在 ruby​​ on rails 中:

<li>
<%= link_to image_tag(current_user.profile.avatar.url(:small), class: "img-circle tiny-img"), "#" %>
<ul class="menu vertical">
<li><%= link_to "Edit", edit_user_profile_path(current_user) %></li>
</ul>
</li>

另外,如何改变箭头的颜色?

最佳答案

您需要为 .is-dropdown-submenu-parent.is-down-arrow>a:before 添加 css 规则并修改 .is- 的 css 规则dropdown-submenu-parent.is-down-arrow>a:after 像这样:

.is-dropdown-submenu-parent.is-down-arrow>a:before {
content: '';
display: block;
width: 0;
height: 0;
border: 5px inset;
border-color: #2199e8 transparent transparent;
border-top-style: solid;
border-bottom-width: 0;
position: relative;
top: 0.25rem;
float: left;
right: 5px;
}

.is-dropdown-submenu-parent.is-down-arrow>a:after {
display: none;
}

Fiddle Demo

更改 .is-dropdown-submenu-parent.is-down-arrow>a:beforetop 值以更改箭头的垂直位置。

关于html - zurb foundation 6 导航栏(顶部栏)中的用户头像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36318372/

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