本文介绍了左边缘不会消失!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个简单的网站,无论我做什么,总有一个奇怪的左边距大约十个像素,我尝试设置
I made a simple website, and no matter what I do, there is always a weird left margin of about ten pixels, I tried setting the
margin-left:0px;
但是我没有工作,请回复,任何帮助都会受到欢迎和赞成
-Jordan
HTML:
but I didn''t work, please respond, any help would be welcomed and apreciated
-Jordan
HTML:
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Jordan 'Croug' LaPrise, Henry 'arctichenry' Schildbach, various CalcuProcessing members">
<meta name="description" content="Minecraft network deticated to independant hosting and free minecraft for everyone!">
<meta name="organization" content="CalcuProcessing">
<meta charset="UTF-8">
<title>ThisIsNotAServerMCNetwork</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link rel=StyleSheet type="text/css" href="style.css">
</head>
<body>
<div id="wrap">
<div id="bg">
<div id="header">
</div><!-- header -->
<div id="navbox">
Test Text
<!-- <a href="index.php" class="nav">Home</a> -->
</div><!-- navbox -->
<div id="scroll">
</div><!-- scroll -->
</div><!-- bg -->
</div><!-- wrap -->
</body>
</html>
CSS:
CSS:
#wrap{
margin-left:0px;
margin-right:0px;
}
#header{
position:fixed;
height:18px;
width:100%;
background-image:url("images/header.png");
color:black;
padding:2px;
}
#navbox{
position:fixed;
}
a.nav{
text-decoration:none;
}
推荐答案
这篇关于左边缘不会消失!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!