国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

HTML+CSS:表單 03

2022-08-31 19:47 作者:huawei13Pro  | 我要投稿

來源:我的學(xué)習(xí)筆記

input元素及屬性


效果圖



單行文本輸入框<input type="text"/> 單行文本輸入框常用來輸入簡短的信息。

密碼輸入框<input type="password"/>密碼輸入框用來輸入密碼,其內(nèi)容將以小圓點的形式顯示。

單選按鈕<input type="radio"/>單項按鈕用于單項選擇,可以用checked屬性,指定默認選中項

復(fù)選框<input type="checkbox">

普通按鈕<input type="button">

提交按鈕<input type="submit">

重置按鈕<input type="reset">

圖像形式的提交按鈕<input type="image">

隱藏域<input type="hidden">用戶看不見,通常用于后臺程序

文件域<input type="file">

代碼案例:

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>input元素及屬性</title>

</head>

<body>

<form action="#" method="post">

user:<input type="text"value="lisa" maxlength="6" /><br /><br />

password:<input type="password" size="40" /><br /><br />

sex:<input type="radio"name="sex"checked="checked" />male

<input type="radio"name="sex" />female<br /><br />

interest:<input type="checkbox" />dance

<input type="checkbox" />rap

<input type="checkbox" />basketball<br /><br />

updoad the image<input type="file" /><br /><br />

<input type="submit" />

<input type="reset" />

<input type="button" value="普通按鈕"/>

<input type="image" src="img/image01.jpg"/><!--以自己的圖片地址為例-->

<input type="hidden" />

</form>

</body>

</html>















HTML+CSS:表單 03的評論 (共 條)

分享到微博請遵守國家法律
仲巴县| 高州市| 宝鸡市| 马龙县| 都江堰市| 滦南县| 苗栗县| 文山县| 巴南区| 金华市| 盐山县| 罗甸县| 宜丰县| 洪泽县| 丹寨县| 长顺县| 桂东县| 尼勒克县| 昆明市| 阳江市| 松滋市| 依安县| 巴马| 余江县| 包头市| 保康县| 蒲城县| 南华县| 丹阳市| 谢通门县| 唐山市| 乌什县| 石渠县| 延津县| 阿拉善左旗| 武宁县| 和顺县| 大港区| 浦北县| 龙江县| 洛浦县|