0
這是我的HTMLCSS按鈕鏈接重疊
<!DOCTYPE html>
<html>
<head>
<title>Corruption in India</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1 id="heading">Corruption in India</h1>
</div>
<div id="menu">
<ul>
<li><a href="http://www.google.com">GOOGLE</a></li>
</ul>
</div>
</div>
</body>
</html>
我的CSS是
#header {
height:%;
width:100%;
}
#heading {
margin-top:20px;
margin-left:5%;
margin-right:25%;
}
#menu {
}
#wrapper {
height:33%;
background:-moz-linear-gradient(bottom,#A6BDF1,#122C67);
}
li {
list-style-type:none;
}
a {
text-decoration:none;padding:4px 4px 4px 4px;
background-color:#112759;
}
但按鈕鏈接重疊了。請給我一個出路。 我給它一個線性漸變,語法大多正確,看起來像一個設計問題。
鍋它的小提琴,請.. – avrahamcool
我只是把這個代碼放到我自己的小提琴和鏈接似乎精細。你可以用你所有的代碼製作你自己的小提琴,這樣我們就可以看到確切的問題了嗎? –
我在JS BIN –