HTML·第三章课后练习题

  1. 采用表格布局完成"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 &copy;2024 MortalTom</p>
    </html>

    运行图:

  2. 编写程序实现"登录界面":
    复制代码
    <!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">密&nbsp;&nbsp;&nbsp;&nbsp;码:<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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"></p>
        </fieldset>
    </form>
    </body>
    		<p align="center">Copyright &copy;2024 MortalTom</p>
    </html>

    运行图:

相关推荐
Rain5093 小时前
1.3. Next.js与Nest.js在AI数据分析中的角色
前端·javascript·人工智能·后端·数据分析·node.js·ai编程
wanghao6664553 小时前
精益方法论:用更少的资源创造更大的价值
大数据·前端·数据库·敏捷开发
AI行业学习3 小时前
CC‑Switch v3.16.1 免费下载(Windows+macOS+Linux)、使用方法【2026.6.11】
linux·开发语言·windows·python·macos·前端框架·html
北风toto3 小时前
Shell脚本(.sh)常用语法全解析:从入门到实战
前端·chrome
zandy10113 小时前
体验家 XMPlus 智能客群分群引擎:从 RFM 模型到多维行为画像的动态标签体系设计
大数据·前端·人工智能
DFT计算杂谈3 小时前
WannierTools输入文件wt.in一键批量生成脚本
java·前端·chrome·python·算法·conda
rising start3 小时前
九、vue3 组件通信:全场景详解
前端·vue.js·typescript
VOLUN3 小时前
告别 AI 乱码!Vue3+TS 项目的 AI 编码助手规范实践
前端·ai编程
踏雪羽翼3 小时前
android 实现文字打印机效果
android·前端·javascript
编程技术手记3 小时前
Vue Scoped CSS 与动态创建 DOM 的兼容性问题
前端·css·vue.js