小编Mat*_*tti的帖子

css文本缩进等效于右侧

我有右侧对齐的文字,我想让它稍微向左推,就像你在右侧的文字缩进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;
} 
Run Code Online (Sandbox Code Playgroud)

菜单是一个简单的水平菜单.

css

16
推荐指数
2
解决办法
2万
查看次数

标签 统计

css ×1