여기서 이미지 아래에 내 머리글 크기를 줄이면 어떻게됩니까?
를 윈도우 크기 메뉴 바 시프트를 감산 한 후 코드이다. HTMl과 CSS를 첨부했습니다.
참조 비디오 링크 ->https://www.youtube.com/watch?v=TTbYFzAz-Lg
내가 반응 네비게이션 바을 만들기 위해 노력했다 ..하지만 난 네비게이션 바 창 크기 씩 감소의 동작을받지 못했습니다.
HTML
<!DOCTYPE html>
<html>
<head>
<title>
Responsive Navigation Bar
</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width initial-scale=1">
</head>
<body>
<div id="header">
<div id="logo">
<img src="Redbull-logo.png">
</div>
<ul id="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">Service</a></li>
<li><a href="#">Product</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
</body>
</html>
CSS
*{
margin: 0px;
padding: 0px;
}
body{
background: skyblue;
}
#header{
width: 100%;
height: 80px;
background: #333;
box-shadow: 0px 3px 4px gray;
}
#navbar{
width: 1000px;
height: 80px;
float: right;
}
#navbar > li{
width: 198px;
list-style: none;
float: left;
border-right: 1px solid gray;
border-left: 1px solid gray;
}
li > a{
display: block;
color: white;
line-height: 80px;
text-align: center;
font-family: cursive;
font-size: 20px;
text-decoration: none;
}
li > a:hover,
li > a:focus{
background-color: skyblue;
color: #333;
}
#logo{
width: 200px;
float: left;
height: 80px;
padding-left: 40px;
}
왜 당신은 몇 가지 코드를 게시하지 않습니다 어떻게 작동하는지의 예? – jhpratt
더 나은 질문을 할 수있는 몇 가지 링크가 있습니다. https://stackoverflow.com/help/how-to-ask, [MCVE] –