- 采用表格布局完成"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
相关推荐
子兮曰4 小时前
async/await高级模式:async迭代器、错误边界与并发控制恋猫de小郭5 小时前
2026 Flutter VS React Native ,同时在 AI 时代 VS Native 开发,你没见过的版本GIS之路7 小时前
ArcGIS Pro 中的 Notebooks 入门IT_陈寒8 小时前
React状态管理终极对决:Redux vs Context API谁更胜一筹?Kagol9 小时前
TinyVue 支持 Skills 啦!现在你可以让 AI 使用 TinyVue 组件搭建项目柳杉9 小时前
从零打造 AI 全球趋势监测大屏simple_lau9 小时前
Cursor配置MasterGo MCP:一键读取设计稿生成高还原度前端代码睡不着先生9 小时前
如何设计一个真正可扩展的表单生成器?天蓝色的鱼鱼9 小时前
模块化与组件化:90%的前端开发者都没搞懂的本质区别明君879979 小时前
Flutter 如何给图片添加多行文字水印