body{
background: #f2f2f2;
font-family: Metrophobic, Arial, serif;
margin:0;
padding:0;
}
#nav{
width:60%;
margin:auto;
}
#topnav{
width:100%;
height:50px;
background: #009688;
display: block;
}
a{
margin: 0px;
text-decoration: none;
color: black;
}
a:visited{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: #f2f2f2;
}
#navl{
float:left;
}
#navr{
float:right;
}
#nav ul li{
list-style: none;
float: left;
padding: 0px 15px 0px 0px;
margin: 0px;
}
#nav img{
width:16px;
height:16px;
}

<html>
<head>
<title>First Project</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link src="java.js" type="text/script">
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="topnav">
<div id="nav">
<div id="navl">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Sitemap</a></li>
</ul>
</div>
<div id="navr">
<ul>
<li><a href="#">Login</a></li>
<li><a href="#">FAQ</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
&#13;
每个div标签左侧似乎有空格。
答案 0 :(得分:2)
body{
background: #f2f2f2;
font-family: Metrophobic, Arial, serif;
margin:0;
padding:0;
}
答案 1 :(得分:0)
Client:
{{#sortable items=<collection|cursor|array> sortField="order"}}
Server:
Sortable.collections = <collectionName>; // the name, not the variable
默认的css值是问题。