如果我将浏览器的窗口缩小,则按钮会混合,徽标会稍微下降。我希望按钮和徽标仍然在那里。我怎么能意识到这一点? 提前谢谢!
html:
<!DOCTYPE html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="css/main.css" type="text/css"/>
</head>
<html>
<body>
<div id="header">
<table>
<th>
<img id="logo" src="images/logo.jpg">
</th>
<th>
<div id="menue_bar">
<a href="#">Home</a>
<a href="#">News</a>
<a href="#">Contact</a>
</div>
</th>
</table>
</div>
</body>
</html>
和css:
#menue_bar {
padding: 24px;
border: #999 1px dashed;
margin-left: 20px;
}
#menue_bar > a{
font-size:17px;
padding: 12px 24px;
margin-right: 10px;
text-decoration: none;
border-style: solid;
border-radius: 3px;
transition: background 0.3s linear 0s, color 0.3s linear 0s;
}
#header {
background-color: #FFFF;
height: 80px;
}