input;label

一、type属性

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>title</title>
</head>
<body>
    文本框:<input type="text">
    <br><br>
    密码框:<input type="password">
    <br><br>
    单选框:<input type="radio">
    <br><br>
    复选框:<input type="checkbox">
    <br><br>
    上传文件:<input type="file">
    <br><br>
</body>
</html>

在这里插入图片描述
二、placeholder属性:占位文本(提示信息)

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>title</title>
</head>
<body>
    文本框:<input type="text" placeholder="请输入卡布浮光">
    <br><br>
</body>
</html>

在这里插入图片描述
三、checked:单选框/多选框默认选中性别;
label写法一:点击男字能选中单选框:label标签只包裹内容,不包裹表单控件;设置label标签的for属性值和表单控件的id属性值相同;
label写法二:点击女字能选中单选框:使用label标签包裹文字和表单控件,不需要属性;

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>title</title>
</head>
<body>
    性别:
    <input type="radio" name="gender" id="man"><label for="man"></label>
    <label><input type="radio" name="gender" checked></label>
    <br><br>
    <input type="checkbox" checked> 星星
    <input type="checkbox" checked> 月亮不睡我不睡
    <input type="checkbox"> 我真的不会写cesium
</html>

四、multiple:多文件上传

上传文件:<input type="file" multiple>

ps:有大佬能给个思路,怎么才能实现渲染一连片环境时,最外层六角格是不被充满的,而靠边的和中间的六角格是充满的,cesium。
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值