我在使用引导框架时创建了一个导航栏。
我的html代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href = "css/bootstrap.min.css" rel ="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container-fluid">
<div class="navbar-landing">
<a href="www.bloomboard.com"><b>BB</b> COLLAB</a>
</div>
</div>
</body>
</html>
CSS:
@import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
.container-fluid{
padding:0;
}
.navbar-landing{
background-color:#FD761F;
height:60px;
width:180px;
display:block;
float:left;
}
.navbar-landing a{
text-decoration: none;
margin-top:30px;
margin-left:60px;
color:#ffffff;
font-size: 20px;
font-family: "Open Sans";
}
但上边距不起作用。看起来总是这样
好沮丧!感谢您的帮助!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句