0
我在我的網站上關注以下引導菜單項。我需要將我的菜單圖標放在頁面的右上角。我如何更改代碼?需要在右側放置引導菜單圖標
#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;
}
真的需要根據新的菜單位置將菜單項目推向右側 – Lion
給#menu塊設置相同的邊距值。 @獅子 – Berkay