首页 技术 正文
技术 2022年11月23日
0 收藏 518 点赞 2,524 浏览 2247 个字

参考:http://www.blueidea.com/tech/web/2007/4545_2.asp

代码试验:

html代码:

 <!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>
<link rel="stylesheet" type="text/css" href="2.css" rel="external nofollow" >
</head> <body>
<div id="header"></div>
<div id="nav">
<li><a>111</a></li>
<li><a>222</a></li>
<li><a>333</a></li>
<li><a>444</a></li>
<li><a>555</a></li>
<li><a>666</a></li>
</div>
<div id="content">
<div id="box1">
<div id="box3"></div>
</div>
<div id="box2">
</div> <h3>123</h3>
<p>第1章
Delphi使用概論 本書的第一章在內容上力求淺顯,其中甚至有一步接一步的操作說明,即使是從來沒有使用過Delphi的程式設計師,閱讀本章相信也不至於有任何問題。我在這一章中示範性的完成一個簡單的應用程式,除了用以說明典型的Delphi的程式開發流程,並且也以這個實例探討Delphi專案是由哪些檔案所組成,接著是與寫作程式息息相關的工具,包括程式編輯器(Program Editor)、除錯器(Debugger)的使用等等。</p>
<p>Delphi程式開發流程</p>
<p>典型的Delphi應用程式開發流程大致上可分為以下兩大步驟:</p>
<p> 設計包括視窗外觀、主選單、按鈕等等的使用者操作介面。</p>
<p> 撰寫使用者操作介面引發的事件處理程序以及其他相關程式。</p>
<p>上述的兩大設計工作不論是介面的設計或者程式的撰寫,都是在所謂的整合開發環境(IDE,Integrated Development Environment)中進行的,此環境不僅能在設計階段就對未來成品的外觀擁有立即的視覺效果,其他的開發工具如程式編輯器與除錯器等也都整合在同一個環境中隨手可得。</p>
<br />
<br />
<br />
<br />
<br />
</div>
<div id="footer">
123company</div>
</body>
</html>

css代码:

 @charset "utf-8";
/* CSS Document */
* {margin:0px; padding:0px;}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 0px auto;
height: auto;
width: 1000px;
border: 1px solid #006633;
}
#header {
height: 100px;
width: 1000px;
background:#FFC;
background-repeat: no-repeat;
margin:0px 0px 3px 0px;
}
#nav {
height: 25px;
width: 1000px;
font-size: 14px;
list-style-type: none;
}
#nav li {
float:left;
}
#nav li a{
color:#FFFFFF;
text-decoration:none;
padding-top:4px;
display:block;
width:97px;
height:22px;
text-align:center;
background-color:#60758C;
margin-left:2px;
}
#nav li a:hover{
background-color:#00A8D5;
color:#FFFFFF;
}
#content {
height:auto;
width: 980px;
line-height: 1.5em;
padding: 10px;
position:relative;
}
#content p {
text-indent: 2em;
}
#content h3 {
font-size: 16px;
margin: 10px;
}
#box1{
background:#FcF;
height:600px;
width:300px;
float:left;
position:relative; }
#box2{
background:#CCC;
height:600px;
width:680px;
float:left;
}
#box3{
background:#999;
height:200px;
width:200px;
position:absolute;
top:0px;
right:0px; }
#footer {
height: 50px;
width: 980px;
line-height: 2em;
text-align: center;
background-color:#3FF;
padding: 10px;
}

显示结果:

CSS盒子模型学习记录2

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,028
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,518
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,367
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,146
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,781
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,858