一些空间,即使填充和边距设置为0px

时间:2015-09-19 07:02:13

标签: javascript jquery html css



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;
&#13;
&#13;

每个div标签左侧似乎有空格。

2 个答案:

答案 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值是问题。

相关问题