我有一個div包含鏈接(一個href)。所有其他利潤率都與href一起工作,但是上邊距並沒有使用href。我想在中間放置鏈接,但由於不能使用上邊緣,所以不可能。我通過設置位置或顯示它可以工作。請爲它提供一個交叉瀏覽器解決方案。div內的上邊距不起作用?
div.MainContainer div.Links
{
height: 57px;
width: 100%;
border-top: solid 0px #404040;
border-left: solid 2px #404040;
border-right: solid 2px #404040;
border-bottom: solid 2px #404040;
background-image: url("../Images/links_background.png");
}
div.MainContainer div.Links a
{
font:12px verdana;
color:White;
margin:10px;
border:dashed 1px white;
margin:15px 20px 20px 20px ;
width:100px;
}
使用float如果你想移動的鏈接下來專區內,你有沒有嘗試過的填充? – Orbit 2010-10-25 13:36:33