布局结束,今天学习下拉菜单

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>今天学布局</title>

</head>

<body>

    <div id="container" style="width: 500px">

    <div id="header" style="background-color: blueviolet">

    <h1 style="margin-bottom: 0;">主要网页标题</h1></div>

    <div id="menu" style="background-color: cornsilk;height: 200px;width: 100px;float: left;">

<b>菜单</b><br>

html <br>

css <br>

javascript

    </div>

<div id="contert" style="background-color: darkgoldenrod;height: 200px;width: 400px;float: left;">正文内容</div>

 

<div id="footer" style="background-color: grey;clear: both;text-align: center;">版权</div>

</div>

</body>

<br>

<br><br><br>

<table width=“500” border="0">

    <tr>

        <td colspan="2" style="background-color: khaki">

        <h1>主要的网页标题</h1>

        </td>

    </tr>

    <tr>

        <td style="background-color:#ffd700;width: 100px;vertical-align: top;">

    <b>菜单</b><br>

    html <br>

    css <br>

    javascript

</td>

<td style="background-color: chartreuse; height: 200px;width: 400px;vertical-align: top"></td>

    </tr>

<tr>

    <td colspan="2" style="background-color: cyan;text-align: center;">

    版权@runoob.com</td>

</tr>

</table>

<br><br><br>

 

<div>

    <form action="">

    first name: <input type="text" name="firstname"><br><br>

    last name: <input type="text" name="lastname">

    </form>

    <p><b>注意</b>表单本身是不可见的。并且注意一个文本段的默认宽度是20个字符。</p>

</div>

<br>

<form action="">

    <input type="radio"name="sex" value="male">male <br>

    <input type="radio"name="sex" value="female">female

</form>

<br>

<form action="">

    <input type="checkbox" name="vehicle" value="bike">i have a bike <br>

    <input type="checkbox" name="vehicle" value="car">i have a  car

</form>

<br>

 

<form action="">

    <select name="cars">

        <option value="volvo">volvo</option>

        <option value="saab">saab</option>

        <option value="fiat">fiat</option>

        <option value="audi">audi</option>

    </select>

</form>

<br>

<body>

  <textarea name="" id="" cols="30" rows="10">我是一个文本框</textarea> 

  <form action="">

      <input type="button" value="提交">

  </form>

</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值