!怎样在网页正中间或最上面加图片(代码)
求助!怎样在网页正中间或最上面加图片(代码)
<img src="图片地址"; width="480" height="360">
比如说这个代码 加的图片 都在网页的页低~~
------解决方案--------------------
<img src="图片地址"; width="480" height="360">
比如说这个代码 加的图片 都在网页的页低~~
------解决方案--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
* {
margin: auto;
padding: 0;
}
body {
font-family: "宋体";
font-size: 14px;
color: #666666;
background-color: #c5dbea;
background-image: url(images/main_bg.gif);
background-repeat: repeat-x;
text-align: center;
height: 18px;
}
p {
margin: 0px;
padding: 0px;
}
a {
text-decoration: none;
cursor: pointer;
}
#main_body {
text-align: left;
width: 960px;
margin-bottom: 18px;
padding-top: 15px;
}
#header {
color: #0b4067;
text-align: left;
height: 152px;
padding: 0px;
}
#logo {
float: left;
height: 100px;
width: 400px;
margin-top: 0px;
background-color: #C5DBEA;
}
.menu {
font-family: "宋体";
font-size: 14px;
font-weight: bold;
color: #444444;
float: right;
height: 25px;
list-style-position: relative;
list-style-type: none;
margin-top: 115px;
}
#footer {
font-size: 12px;
color: #0b4067;
float: left;
margin-top: 8px;
margin-right: 20px;
margin-bottom: 20px;
margin-left: 20px;
}
.menu li {
float: left;
list-style-type: none;
padding-left: 0px;
}
.menu a {
color: #003863;
margin-top: 5px;
margin-right: 15px;
margin-bottom: 5px;
margin-left: 15px;
}
.menu a:hover {
color: #1a75bc;
margin-top: 5px;
margin-right: 15px;
margin-bottom: 5px;
margin-left: 15px;
}
li.menu_active a {
color: #1a75bc;
border-right-width: 1px;
border-left-width: 1px;
border-right-style: none;
border-left-style: none;
border-right-color: #003863;
border-left-color: #003863;
margin-top: 5px;
margin-right: 15px;
margin-bottom: 5px;
margin-left: 15px;
}
#content_body {
background-color: #ffffff;
background-image: url(images/inner_content_bg.gif);
font-size: 12px;
color: #666666;
background-repeat: repeat-x;
background-position: top;
text-align: left;
margin-top: 0px;
margin-bottom: 0px;
padding-top: 20px;
padding-left: 20px;
padding-right: 20px;
padding-bottom: 30px;
margin-right: 0px;
margin-left: 0px;
}
#left_content {
font-size: 12px;
color: #666666;
float: left;
width: 600px;
background-color: #FFF;
margin-left: 5px;
}
#left_content p {
margin-top: 7px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}