- 采用表格布局完成"CASIO计算器"外观设计,其中表格的每一个单元格均需要设计带边框
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CASIO 计算器</title> <style> td { border: 1px solid #000; height: 40px; text-align: center; font-size: 18px; background-color: #fff; } </style> </head> <body> <table width="200" height="30" border="2" align="center"> <tr> <td>CASIO</td> </tr> </table> <table width="200" height="50" border="1" align="center"></table> <table width="200" border="1" align="center" bgcolor="gray" cellspaacing="30px"> <tr> <td>1</td> <td>2</td> <td>3</td> <td>+</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> <td>-</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> <td>*</td> </tr> <tr> <td>0</td> <td>=</td> <td>CE</td> <td>/</td> </tr> </table> </body> <p align="center">Copyright ©2024 MortalTom</p> </html>运行图:

- 编写程序实现"登录界面":
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>登录界面</title> </head> <body> <form > <fieldset style="width:300px;height:230px;margin:0 auto;"> <legend align="center">登录界面</legend> <p align="center">用户名:<input type="text" maxlength="25"></p> <p align="center">密 码:<input type="password" maxlength="25"></p> <p align="center">类型:<input type="radio" name="user">管理员 <input type="radio" name="user">普通用户</p> <p align="center"><input type="checkbox">记住密码 <input type="checkbox">自动登录</p> <p align="center"><input type="submit"> <input type="reset"></p> </fieldset> </form> </body> <p align="center">Copyright ©2024 MortalTom</p> </html>运行图:

HTML·第三章课后练习题
MortalTom2024-09-27 14:42
相关推荐
JIngJaneIL10 分钟前
助农惠农服务平台|助农服务系统|基于SprinBoot+vue的助农服务系统(源码+数据库+文档)云外天ノ☼14 分钟前
待办事项全栈实现:Vue3 + Node.js (Koa) + MySQL深度整合,构建生产级任务管理系统的技术实践一位搞嵌入式的 genius18 分钟前
前端实战开发(三):Vue+Pinia中三大核心问题解决方案!!!塞纳河畔的歌19 分钟前
保姆级教程 | 麒麟系统安装Edge浏览器多睡觉觉20 分钟前
数据字典:从"猜谜游戏"到"优雅编程"的奇幻之旅嗝屁小孩纸23 分钟前
开发集成热门小游戏(vue+js)赛博切图仔29 分钟前
深入理解 package.json:前端项目的 “身份证“UIUV32 分钟前
JavaScript 学习笔记:深入理解 map() 方法与面向对象特性太平洋月光41 分钟前
MJML邮件如何随宽度变化动态切换有几列📮AAA不会前端开发44 分钟前
TypeScript核心类型系统完全指南