即时通讯做网站,但我的头问题。 我想要一个标题就像stackoverflows的听者,但我的头获取空间在侧面和顶部。 这是我的CSS:网站全宽标题
@charset "utf-8";
/* CSS Document */
.logo {
vertical-align: top;
position: relative;
height: auto;
width: auto;
}
#header {
background-color: #E7E7E7;
margin: auto;
width: 100%;
heigth: 100;
}
这是我的html:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Kifhood.se</title>
<link href="Untitled-3.css" rel="stylesheet" type="text/css">
<!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
<script>var __adobewebfontsappname__="dreamweaver"</script>
<script src="http://use.edgefonts.net/advent-pro:n1,n3:default.js" type="text/javascript"></script>
</head>
<body>
<div id="header">
<div class="wrap">
<div class="logo">
<p style="font-family: advent-pro; font-style: normal; font-weight: 300; font-size: 36px; color: #FFFFFF; min-width: 0px;">Testing site</p>
</div>
</div>
</div>
</body>
</html>
,这是我的结果 http://gyazo.com/4b0329b097fe51db377258f99d0fe2c9
您已经删除填充和利润率从身体和HTML元素? – kthornbloom
我的头里没有看到任何空格。毕竟,你正在使用'position:fixed'((0,0))。 – Sachin