日期:2014-05-17  浏览次数:20670 次

关于用div布局求助!!!!!!!!!!!!!!!!!!
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>个人消费管理系统</title>
    
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
body{
margin: 0px;
padding: 0px;
background-image: url("./Images/background.png");
}
     div{
border: 3px solid black;
}
.div_logo{
margin-top:2px;
width: 100%;
}
.div_dh{
margin-top: 2px;
}
  #div_buttom div_left_dh,div_iframe{
float: left;
width: 100%;
}   
.div_left_dh{
 /*  margin-right:90%;  */
    width:120px;
text-align: center;
height: 100%;              
padding-top: 2%;
}
.div_addxf{
margin-bottom: 20%;
}
.div_xfgl{
margin-bottom: 20%;
}
.div_lxwm{
margin-bottom:20%;
}
#div_iframe{
     margin-left: 130px;
     width: 100%;
     padding: 0px;
}
span{
border: 1px solid red;
}
.span_logo{
    border: 0px solid; red;
text-align:center;
margin-left: 40%;
}
.span_logoname{
    border: 0px solid; red;
text-align:center;
margin-left: 40%;
    color: red;
    font-size:25px;
}
.span_xt,.span_grzl,.span_grzl,.span_gy,.span_bz{
margin-left: 15%;
}
  .span_iframe{
  padding: 0px;
  width: 100%;
  }

</style>

  </head>

  <body>
  <div class="body">
    <form action="?" method="post">
     <div class="div_logo">
    <span class="span_logo"><img src="./Images/logo.png"></span>
    <div class="div_logname">
    <span class="span_logoname">个人消费管理系统</span>
    </div>
    </div>
    
    <div class="div_dh">
    <span class="span_grzl">个人昵称(点击可以查看个人信息)</span>