1、系统主界面。主界面命名为zf.html,左侧登录界面和右侧登录界面通过iframe嵌入,分别命名为left.html和main.html。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<link href="css-zf.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="header" style="position: relative;">
<img src="网上房屋交易信息.jpg" alt=" " style="height:220px;width: 900px">
<div style="position: absolute;z-index: 2;right: 10px;top: 10px"><h1 style="color: red">网上房屋交易信息平台</h1></div>
</div>
<div id="main">
<div id="aside"><iframe src="left.html.html" frameborder="0" width="1000" scrolling="no" height="500"></iframe></div>
<div id="content"><iframe src="main.html.html" frameborder="0" width="1000" scrolling="no" height="500"></iframe>
</div>
</div>
</div>
</body>
</html>
Zf-css:
@charset "utf-8";
/* CSS Document */
*{margin: 0px;
padding: 0;}
#container{
width: 900px;
margin: 0 auto;
}
#header{
height: 220px;
}
#main{
background-color:#4577F0;
/*height: 2050px;*/
}
#aside{
float:left;
width: 305px;
/*height: 500px;*/
background-color:#399AFC;
text-align: center;
font-size: 14px;
}
#content{
float: right;
width: 595px;
/*height: 2050px;*/
margin-bottom: 5px;
background-color: #399AFC;
}
2、左侧登录界面
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style media="screen" type="text/css">Add style rules here</style>
<style>
#overall{width: 250px;
height:450px;
background-color:#B3D8F5;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
}
#left{
width: 200px;
background-color:#FFFFFF;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
position:absolute;
left:30px;
top:20px;
}
#container {
display: flex;
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
}
</style>
</head>
<body>
<div id="overall">
<div id="left">
<table id="container" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>用户名:</td></tr>
<tr>
<td><input type="text" name="userName"></td>
</tr>
<tr>
<td>密 码:</td>
</tr>
<tr>
<td><input type="password" name="userPassword"></td>
</tr>
<tr> </tr>
<tr>
<td colspan="2" align="center"><a href="afterlogin.html"><input type="submit" name="submit" value="登录"></a>
<input type="reset" name="reset" value="重置"></td>
</tr>
<tr>
<td><a href="file:///C:/Users/LENOVO/Desktop/web/register.html" target="_top"><h5 align="center" >注册用户</h5></a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
3、右侧界面
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style media="screen" type="text/css">Add style rules here</style>
<style>
#overall{width: 550px;
height:450px;
background-color:#B3D8F5;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
}
#main{
width: 500px;
height: 200px;
background-color:#FFFFFF;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
position:absolute;
left:30px;
top:20px
}
#container {
display: flex;
align-items: center; /* 垂直居中 */
justify-content: center;/* 水平居中 */
border-collapse: separate;
border-spacing: 5px;
}
</style>
</head>
<body>
<div id="overall">
<div id="main">
<table id="container" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>选择查询条件:</td>
</tr>
<tr>
<td>区域:</td>
<td>
<select name="selectyear" size="1">
<option selected>不限--</option>
<option>国内</option>
<option>海外</option>
</select>
</td>
<td>街道:</td>
<td>
<select name="selectyear" size="1">
<option selected>不限--</option>
<option>临川街道</option>
<option>金巢大道</option>
</select>
</td>
</tr>
<tr>
<td>售价:</td>
<td><input type="text" name="housePrice" style="width: 50px">至<input type="text" name="housePrice" style="width: 50px"></td>
<td>户型:</td>
<td>
<select name="selectyear" size="1">
<option selected>不限--</option>
<option>三</option>
<option>二</option>
<option>一</option>
</select>
室<select name="selectmonth" size="1">
<option selected>不限--</option>
<option>三</option>
<option>二</option>
<option>一</option>
</select>
厅
</td>
</tr>
<tr>
<td>房屋类型:</td>
<td>
<select name="selectyear" size="1">
<option selected>不限--</option>
<option>别墅区</option>
<option>学区房</option>
<option>小区</option>
</select>
</td>
<td>发布日期:</td>
<td>
<select name="selectyear" size="1">
<option selected>不限--</option>
<option>一周前</option>
<option>一月前</option>
<option>一年前</option>
</select>
</td>
</tr>
<tr>
<td colspan="5" align="center"><!--<a href="file:///C:/Users/LENOVO/Desktop/web/searchlist.html" target="_top">--><a href="searchlist.html.html"><input type="reset" name="reset" value="查询" ></a></td>
</tr>
</table>
</div>
</div>
<!-- <div οnclick="window.open(*file:///C:/Users/LENOVO/Desktop/web/register.html.html*,*_self*)"><a href="file:///C:/Users/LENOVO/Desktop/web/register.html.html"><h5 align="center">注册用户</h5></a></div> -->
</body>
</html>