第十四天学习笔记

今天继续学习了表单和框架以及HTML5相关的知识点:

先是测试了下html,用表单和表格相关的知识点,以下是代码部分:

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
 3 <head>
 4     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 5     <title>html阶断测试</title>
 6     <meta name="keywords" content="关键字列表" />
 7     <meta name="description" content="网页描述" />
 8     <link rel="stylesheet" type="text/css" href="" />
 9     <style type="text/css"></style>
10     <script type="text/javascript"></script>
11 </head>
12 <body>
13     <form action="receive.php" method="post">
14         <table align = "center" border = 1 width = "280" cellpadding = "0" cellspacing = "0">
15             <!--标题表格-->
16             <tr>
17                 <th colspan = "2" height = "50">信息登记表</th>
18             </tr>
19             <!--姓名-->
20             <tr align = "middle" bgcolor = "#33cccc">
21                 <td size = "10" cols = "5">姓名</td>
22                 <td>
23                     <input type = "text" name = "user">
24                 </td>
25             </tr>
26             <!--性别-->
27             <tr align = "middle">
28                 <td>性别</td>
29                 <td>
30                     <input type = "radio" name = "sex" value = "男" checked = "checked"/>男    <!--默认选择-->
31                     <input type = "radio" name = "sex" value = "女"/>女
32                 </td>
33             </tr>
34             <!--爱好-->
35             <tr align = "middle" bgcolor = "#33cccc">
36                 <td>爱好</td>
37                 <td>
38                     <input type = "checkbox" name = "like" value = "看电影" checked = "checked"/>看电影
39                     <input type = "checkbox" name = "like" value = "听音乐"/>听音乐
40                     <input type = "checkbox" name = "like" value = "旅行"/>旅行
41                 </td>
42             </tr>
43             <!--月薪-->
44             <tr align = "middle">
45                 <td>月薪</td>
46                 <td><input type = "text" name = "yuexing">元</td>
47             </tr>
48             <!--国籍-->
49             <tr align = "middle" bgcolor = "#33cccc">
50                 <td>国籍</td>
51                 <td>
52                     <select name = "city">
53                         <option value = "中国" selected = "selected">中国<option><!--默认选择-->
54                         <option value = "USA">USA<option>
55                         <option value = "English">English<option>
56                     </select>
57                 </td>
58             </tr>
59             <!--备注-->
60             <tr align = "middle">
61                 <td>备注</td>
62                 <td>
63                     <textarea name = "beizhu" cols = "20"></textarea>
64                 </td>
65             </tr>
66             <!--按钮栏-->
67             <tr align = "middle">
68                 <td colspan = "2">
69                     <button>提交信息</button>
70                     <input type="reset" name = "tj" value = "重置">
71                 </td>
72             </tr>
73         </table>
74     </form>
75 </body>
76 </html>

效果如图:

对于表单,个人感觉还是需要多加练习,不太熟练的掌握

===============================================================================

接下来是关于框架的一些复习,因为部分原因,今天的框架并没有写完,以下是部分代码和效果图:

主界面的代码如下

1 <frameset rows = "64px,*" border = 1px >
2         <frame src = "job_16_11_28_00_top.html" name = "top" noresize="noresize">
3         <frameset cols = "15%,*">
4         <frame src = "job_16_11_28_00_left.html" name = "left" noresize="noresize">
5         <frame src = "job_16_11_28_00_right.html" name = "right">
6 </frameset>

_top页的代码:

 1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
 2 <head>
 3     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 4     <title>网页标题</title>
 5     <meta name="keywords" content="关键字列表" />
 6     <meta name="description" content="网页描述" />
 7     <link rel="stylesheet" type="text/css" href="" />
 8     <style type="text/css">
 9         body{
10             margin:5px;
11         }
12     </style>
13     <script type="text/javascript"></script>
14 </head>
15 <body background = "Images/top-bg.gif">
16     <table align = "right" cellspacing = 0>
17         <tr>
18             <td>
19                 <font color = "white">早上好<font color = "green">admin</font> ,欢迎你</font>
20                 <input type = "button" value = "退出" name = "etx">
21             </td>
22         </tr>
23         <tr>
24             <td align = "right">
25                 <a href = "#">返回首页</a>
26             </td>
27         <tr>
28     </table>
29 </body>
30 </html>

_left导航栏的代码如下:

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
 3 <head>
 4     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 5     <title>网页标题</title>
 6     <meta name="keywords" content="关键字列表" />
 7     <meta name="description" content="网页描述" />
 8     <link rel="stylesheet" type="text/css" href="" />
 9     <style type="text/css"></style>
10     <script type="text/javascript"></script>
11 </head>
12 <body>
13     <table align = "center" cellpadding = 2>
14         <tr>
15             <th background = "Images/menu_bg.gif" width = 300 align = "left"><font color = "blue">  网站管理菜单</font></th>
16         </tr>
17         <tr>
18             <td background = "Images/menu_topline.gif" width = 182 ></td>
19         </tr>
20         <tr>
21             <th background = "Images/menu_bg.gif" width = 182 align = "left">  新闻资讯</th>
22         </tr>
23         <tr>
24             <th background = "Images/menu_bg.gif" width = 182 align = "left">  公司介绍</th>
25         </tr>
26         <tr>
27             <th background = "Images/menu_bg.gif" width = 182 align = "left">  成功案例</th>
28         </tr>
29         <tr>
30             <th background = "Images/menu_bg.gif" width = 182 align = "left">  送花常识</th>
31         </tr>
32     </table>
33 </body>
34 </html>

_right页暂无代码,且导航栏并未添加链接,所以其效果如图:

关于剩下的功能,由于时间关系,只能明天补全~

时间: 2024-10-06 08:47:59

第十四天学习笔记的相关文章

Linux课程第十四天学习笔记

####################3.磁盘加密####################1.磁盘加密fdisk /dev/vdbcryptsetup luksFormat /dev/vdb1cryptsetup open /dev/vdb1 westosmkfs.xfs /dev/mapper/westosmount /dev/mapper/westos /mnt/umount /mnt/cryptsetup close westos 磁盘加密提高了安全性能,但是增加了CPU的负载通常只对重

七月算法-12月机器学习在线班--第十四次课笔记—EM算法

七月算法-12月机器学习在线班--第十四次课笔记-EM算法 七月算法(julyedu.com)12月机器学习在线班学习笔记http://www.julyedu.com ? EM Expection Maxium 期望最大化 1 引例 1000人,统计身高,1.75,1.62,1.94,有多少男女,每个身高对应的男女 ? 1.1 如何算?利用极大似然估计,估算均值和方差 上述结论和矩估计的结果是一致的, 即:样本的均值即高斯分布的均值,样本的伪方差即高斯分布的方差. 如果是高斯分布,就可以这么用本

第十六周学习笔记

本周的学习笔记主要关于MY SQL日志 1.查询日志是否开启 2.查看慢查询日志 3.查看二进制日志 4.删除所有二进制日志文件 RESET MASTER; 5.只删除部分二进制日志文件 PURGE MASTER LOGS; 原文地址:https://www.cnblogs.com/lzy35/p/8111445.html

Thinking in Java,Fourth Edition(Java 编程思想,第四版)学习笔记(十四)之Type Information

Runtime type information (RTTI) allow you to discover and use type information while a program is running This take two forms: 1. "traditional" RTTI, which assumes that you have all the types available at compile time, 2. the reflection mechanis

Thinking in Java,Fourth Edition(Java 编程思想,第四版)学习笔记(十二)之Error Handling with Exceptions

The ideal time to catch an error is at compile time, before you even try to run the program. However, not all errors can be detected at compile time. To create a robust system, each component must be robust. By providing a consistent error-reporting

《Linux内核设计与实现》第四章学习笔记

第四章 进程调度 [学习时间:1小时45分 撰写博客时间:2小时10分钟] [学习内容:Linux的进程调度实现.抢占和上下文切换.与调度相关的系统调用] 调度程序负责决定将哪个进程投入运行,何时运行以及运行多长时间.进程调度程序可看做在可运行态进程之间分配有限的处理器时间资源的内核子系统. 最大限度利用处理器时间的原则:只要有可以执行的进程,那么总会有程序正在执行. 一.多任务 1.概念:多任务操作系统就是能同时并发地交互执行多个进程的操作系统,在单处理器机器上这会产生多个进程在同时运行的幻觉

算法第四版学习笔记之快速排序 QuickSort

软件:DrJava 参考书:算法(第四版) 章节:2.3快速排序(以下截图是算法配套视频所讲内容截图) 1:快速排序 2:

Thinking in Java,Fourth Edition(Java 编程思想,第四版)学习笔记四)之Operators

At the lowest level, data in Java is manipulated using operators Using Java Operators An operator takes one or more argument and produces a new value. The arguements are in a different form than ordinary method calls, but the effect is the same. + :

《Java从入门到精通》第十二章学习笔记

第12章  输入和输出 一.流概述 流是指一组有序的数据序列,数据源和输出目标可以是文件,网络,压缩包或其他. 二.输入/输出流 所有输入流都是抽象类InputStream(字节输入流)或抽象类Reader(字符输入流)的子类:所有输出流都是抽象类OutputStream(字节输出流)和抽象类Writer(字符输出流)的子类. 1.输入流 InputStream是所有字节输入流的父类,该类主要方法如下,方法出现错误时候会引发IOException异常. (1)read():从输入流中读取数据的下