
设置html 输入框控件text的自定义长度宽度和字体的大小,你只要在输入栏中写入代码即可。
代码如下:
<input name="" type="text" style="width:200px; height:20px;" />
PS:
[html] view plain copy
<textarea id="content" name="content" style="width: 80%;height: 30%;" onblur="thisvalue=thisvaluetrim()">
${newscontent}</textarea>
最好使用上面这种 比较好扩展
使用px 网页压缩时候会变形
[html] view plain copy
<textarea id="content" name="content" style="width:330px;height: 130px;" onblur="thisvalue=thisvaluetrim()">
${newscontent}</textarea>
单选框RADIO单选框能够进行项目的单项选择,以一个圆框选择。
基本语法
<input
type="radio"
name="field_name"
checked
value="'value"
>
语法解释
checked表示此项被默认选中,field_name是单选框的名称,用于服务器端接收参数使用,就像你自己的名字一样,
value表示选中项目后传送到服务器端的值。
文件范例:11-10htm
在页面中插入单选框。
01
<!--
------------------------------
-->
02
<!--
文件范例:11-10htm
-->
03
<!--
文件说明:插入单选框
-->
04
<!--
------------------------------
-->
05
<html>
06
<head>
07
<title>插入单选框</title>
08
</head>
09
<body>
10
<h1>用户调查</h1>
11
<Form
action=mailto:tslxg@hotmailcom
method=get
name=invest>
12
姓名:<input
type="text"
name="username"
size=20><br>
13
网址:<input
type="text"
name="url"
size=20
maxlength=50
value=">
方法一:<input type="checkbox" aria-label="" style="zoom:200%;">
默认zoom是100%,根据自己的需要,更改缩放倍数即可。
方法二:
<input type="checkbox" aria-label="" style="height: 24px;width: 24px;">
记住,要同时设置 height 与 width。
推荐使用 方法二。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)