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>

    运行图:

相关推荐
IT_陈寒17 分钟前
SpringBoot自动配置的坑,我的Bean怎么不生效?
前端·人工智能·后端
迷途呀30 分钟前
新闻头条后端:新闻缓存模块
前端·redis·python·缓存·fastapi
糖墨夕40 分钟前
第一章:为什么你要学 AI Agent?—— 从"切图仔"到全栈的进化之路
前端·javascript·vue.js
随风一样自由44 分钟前
【前端+Canvas+航天】长征十号乙火箭回收全流程动画
前端·canvas·长征十号乙
CappuccinoRose1 小时前
CSS、Less、Sass(含 SCSS)、Stylus
前端·css·less·sass·stylus
不听话坏10 小时前
Ignition篇(下 一) 动态执行前的事情
开发语言·前端·javascript
likeyi0710 小时前
require 和 import的区别
开发语言·前端
pany11 小时前
做 AI 友好的开源 Vue3 模板 🌈
前端·vue.js·ai编程
小二·11 小时前
React 19 + Next.js 15 现代前端开发实战:App Router / Server Components / 流式渲染
前端·javascript·react.js
谙忆102412 小时前
前端图片直传对象存储:OSS/S3 预签名 URL、STS 临时凭证与回调校验
前端