【发布时间】:2017-05-25 10:17:31
【问题描述】:
我正在尝试让当前位于侧面的链接移动到顶部并像在常规导航栏中一样对齐。
像这样: Rough Illustration of Goal
而不是目前所有的东西都挤在一边。
当前代码:https://jsfiddle.net/58dn7rw7/
#mySidenav a {
position: fixed;
right: -90px;
transition: 0.3s;
padding: 15px;
width: 120px;
color: white;
border-radius: 100px 0 0 10px;
text-align: right;
text-decoration: none;
font-family: 'Quicksand', sans-serif;
font-size: 20px;
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
#mySidenav a:hover {
right: 0;
-ms-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
感谢您的帮助。
【问题讨论】:
-
我可能不明白你在说什么,但在小提琴中你正在使用顶部定位元素。您不能将最高值更改为您想要分散的值吗?