---
title: "网页设计1"
author: "jasstion"
date: "2009-09-07T22:44:51Z"
tags: []
categories: ["Web前端"]
slug: "1"
draft: false
lastmod: "2009-09-07T22:44:51Z"
id: 464371
url: "https://jasstion.iteye.com/blog/464371"
---

自己制作一个网站真是麻烦！业务代码还好，但是界面设计真是太烦人啊！下面是今天完成的文件下载界面中的一部分：自己感觉还不错啊呵呵！尽管我对自己对网页界面颜色搭配很没有自信！大家看看啊！

一下是图片和代码：

&lt;%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.\*" errorPage="" %&gt;  
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;  
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;  
&lt;head&gt;  
&lt;script type="text/javascript" src="jquery-1\[1].3.2.js"&gt;&lt;/script&gt;

&lt;script&gt;  
$(document).ready(function(){  
$(".add").hide();  
    $(".nav").hide();  
    $("#nav&gt;li").hover(  
      function () {  
       $(this).css({ backgroundColor:"yellow",fontWeight:"bolder" });  
},  
      function () {  
        $(this).css({ backgroundColor:"blue", fontWeight:"bolder" });  
      }  
    );  
     
});  
   function show(t){  
   $(document).ready(function(){  
   $(".nav").hide();  
   $("#"+t).show();  
});  
}  
   function showaddtopic(t){  
    $(document).ready(function(){  
    $(".add").hide();  
    $("#"+t).show();  
  });  
  }  
&lt;/script&gt;  
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;  
&lt;title&gt;无标题文档&lt;/title&gt;  
&lt;style&gt;

#showfile\_content{  
margin-left:10%;  
width:90%;  
border:#3333CC;  
height:100px;  
}  
#table{  
margin-left:10%;  
width:90%;  
}  
#header{  
line-height:14px;  
font-family:Arial, Helvetica, sans-serif;  
font-size:18px;  
color:#FFCC33;  
width:590px;  
float:right;  
height:30px;  
background:url(nav.gif) repeat-x;  
}  
#header #headerul{  
margin-top:1px;  
margin-bottom:1px;  
margin-left:0px;  
list-style:none;  
}  
#header #headerul li{  
border: 1px solid #ffffff;  
padding: 5px 15px 5px 10px;  
display: block;  
float:left;  
}  
#header #headerul #forum{  
text-align:center;  
width:150px;  
}  
#header #headerul #amount{  
text-align:center;  
width:100px;  
}  
#tr #trul #amount{  
text-align:center;  
width:100px;  
}  
#tr{  
float:right;  
font-family:Arial, Helvetica, sans-serif;  
font-size:15px;  
color:#3399FF;  
width:590px;  
height:30px;  
background:#CCCCCC;  
}  
#tr #trul{  
margin-top:1px;  
margin-bottom:1px;  
margin-left:0px;  
list-style:none;  
}  
#tr #trul li{  
border: 1px solid #ffffff;  
padding: 5px 15px 5px 10px;  
display: block;  
float:left;  
}  
#tr #trul #forum{  
width:150px;  
}  
#tr #trul #download{  
padding:0;  
width:130px;  
}  
&lt;/style&gt;  
&lt;/head&gt;

&lt;body&gt;  
&lt;div id="showfile\_content"&gt;  
  &lt;div id="table"&gt;  
  &lt;div id="header"&gt;  
  &lt;ul id="headerul"&gt;  
  &lt;li id="forum"&gt;资料名&lt;/li&gt;  
  &lt;li id="amount"&gt;下载次数&lt;/li&gt;  
  &lt;li id="amount"&gt;上传用户&lt;/li&gt;  
  &lt;li id="amount"&gt;上传日期&lt;/li&gt;  
  &lt;/ul&gt;  
  &lt;/div&gt;&lt;!--end header--&gt;  
  &lt;div id="tr"&gt;  
   &lt;ul id="trul" &gt;  
  &lt;li id="forum"&gt;资料名111111&lt;img src="file.jpg" width="30" height="15" /&gt;&lt;/li&gt;  
  &lt;li id="amount"&gt;下载次数&lt;/li&gt;  
  &lt;li id="amount"&gt;上传用户&lt;/li&gt;  
  &lt;li id="amount"&gt;上传日期&lt;/li&gt;  
   &lt;li id="download"&gt;&lt;a href="#"&gt;&lt;img src="download.gif"/&gt;&lt;/a&gt;&lt;/li&gt;  
  &lt;/ul&gt;  
  &lt;/div&gt;&lt;!--end tr--&gt;  
   &lt;div id="tr"&gt;  
   &lt;ul id="trul" &gt;  
&lt;li id="forum"&gt;资料名111111&lt;img src="file.jpg" width="30" height="15" /&gt;&lt;/li&gt;  
  &lt;li id="amount"&gt;下载次数&lt;/li&gt;  
  &lt;li id="amount"&gt;上传用户&lt;/li&gt;  
  &lt;li id="amount"&gt;上传日期&lt;/li&gt;  
   &lt;li id="download"&gt;&lt;a href="#"&gt;&lt;img src="download.gif"/&gt;&lt;/a&gt;&lt;/li&gt;  
  &lt;/ul&gt;  
  &lt;/div&gt;  
  &lt;/div&gt;&lt;!--end table--&gt;  
  &lt;/div&gt;&lt;!--end content--&gt;  
   
&lt;/body&gt;  
&lt;/html&gt;  
图片：