0

作成中のこの Web ページの下部に 2 つの列を配置したいのですが、2 つの列が隣同士ではなく重なり合っています。私は何を間違っていますか?

html は次のとおりです。

<!doctype html>
<html>
<head>
<meta charset=utf-8">
<title>Untitled Document</title>
</style>
<style type="text/css">
@import url("adobeIndex.css");
</style>
</head>

<body>
<div id="container">
<div id="banner">Content for  id "banner" Goes Here</div>
<div id="left-text">Content for  id "left-text" Goes Here</div>
<div id="1-left-column">Content for  id "1-left-column" Goes Here </div>
<div id="1-right-column"> Content for id "1-right-column" Goes Here</div>
</div>
</body>
</html>

そしてCSS:

    @charset "utf-8";
/* CSS Document */

#container {
width:968px;
background: #00F;
margin:auto;
padding-left:10px;
padding-right:10px;
overflow:hidden;
 }

#left-text {
 width:300px;
 height:400px;
 margin-top:20px;
 margin-bottom:20px;
}

#1-left-column, #1-right-column {
width: 464px;
float: left;
}
#1-right-column {
margin-left: 20px;
}
4

1 に答える 1

2

ID 名を数字で始めないでください。代わりにleft-columnandright-columnまたはone-left-columnandを使用してくださいone-right-column

于 2012-06-24T17:28:17.387 に答える