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>

    运行图:

相关推荐
我爱学习_zwj15 分钟前
【鸿蒙进阶-7】鸿蒙与web混合开发
前端·华为·harmonyos
小谭鸡米花16 分钟前
高德地图电子围栏/地图选区/地图打点
前端·javascript·vue.js
摆烂工程师19 分钟前
什么是 ChatGPT Business 会员?与 ChatGPT Plus 有什么不同?
前端·后端·程序员
闲不住的李先森30 分钟前
使用Context7:告别AI“幻觉”,让编程助手永远生成最新、可用的代码
前端·ai编程·cursor
西瓜树枝33 分钟前
解决 JS 大整数精度丢失?一文读懂 BigInt 的底层逻辑与实战规则
前端·javascript
刺客_Andy34 分钟前
React 第四十六节 Router中useInRouterContext的使用详细介绍及注意事项
前端·javascript·react.js
刺客_Andy36 分钟前
React 第四十四节Router中 usefetcher的使用详解及注意事项
前端·javascript·react.js
该用户已不存在40 分钟前
我的Python工具箱,不用加班的秘密
前端·后端·python
刺客_Andy40 分钟前
React 第四十五节 Router 中 useHref() Hook的使用详解及注意事项
前端·javascript·react.js
好好好明天会更好44 分钟前
Vue2中页面数据响应的问题
前端·javascript·vue.js