我有右侧对齐的文本,我希望它向左推一点,就像你在右侧使用文本缩进 bur 所做的那样。有什么解决办法吗?我一直在尝试使用边距,但 IE9 将第一个菜单项 (?) 的边距加倍。
继承人的CSS:
h99
{ padding: 0px;
font-family: lucida, sans-serif;
font-size: 16px;
font-weight: bold;
line-height: 40px;
}
#menublock
{ width: 230px;
height: auto;
float: left;
text-align:right;
margin-right: 0px;
}
ul
{ list-style-type: none;
margin:0;
padding:0;
overflow: hidden;
}
ul a:link, ul a:visited
{ display: block;
width: 210px;
background: transparent;
text-align: right;
text-transform: uppercase;
text-decoration: none;
height: 40px;
color: #ffffff;
padding: 0px;
margin: 10px;
}
ul a:hover, .selected
{ background: #484848 !important;
color: #ffffff !important;
}
菜单是一个简单的水平菜单。