HTML中type的可用类型

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
<form >
账户 : <input type = "text"  name ="user"  size="10"><p>
密码 : <input type = "password"  name ="password"  size="10"><p>
性别:<input type = "radio"  name = "sex"  value = "man" ><input type = "radio"  name = "sex"  value = "women"><p>  <!--通过name这个属性标示是同一组按钮,但value就表示值不同-->
爱好: <input type = "checkbox"  name = "aihao1"  value = "ai">旅游
     <input type = "checkbox"  name = "aihao2" value = "book">看书
     <input type = "checkbox"  name = "aihao3" value = "ty" >体育<p>
你最喜欢的一句话 :
     <input type = "text"  name = "mingyan" ><p>
     <input type = "submit"  name = "submit" >
     <input type = "reset"  name = "reset" ><p>    
     <input type = "hidden"  name = "hidden" value = "A"><p>  
      hidden 隐藏域,用户不可见元素。把A传过去但在页面看不到 
</form>
</body>
</html>

 


 

注意:type =""分号中间的类型不能带空格。如 type ="chckbox  " , chckbox后面连着两个空格,这个会导致错误,可能会导致出现的是文本框

还有两种类型没有写,因为不熟悉

image 图片按钮,可以指定图片背景作为button face;

file 文件选择;搜索

转载于:https://www.cnblogs.com/huchap/p/4044630.html

在使用 Pyecharts 创建图表时,`splitline` 是一个用于在图表的特定轴上显示分隔线的属性。它通常用于分割图表的X轴或Y轴,以更清晰地区分不同的数据区域。`splitline` 的 `is_show` 属性可以用来控制是否显示分隔线。 `splitline` 可以设置的属性有: 1. `is_show` (bool): 控制是否显示分隔线。默认为 `False`。 2. `line_style` (dict): 控制分隔线的样式,例如颜色、线型和宽度等。 以下是 `line_style` 可以使用的属性: - `color` (str): 分隔线的颜色,可以是十六进制颜色代码或颜色名称。 - `type` (str): 分隔线的类型,可以是 `'solid'`、`'dashed'`、`'dotted'` 等。 - `width` (int): 分隔线的宽度。 - `opacity` (float): 分隔线的透明度,取值范围为0到1。 - `dash_offset` (int): 在线性渐变,起始偏移量。 这里有一个简单的例子,演示了如何在 Pyecharts 的柱状图使用 `splitline`: ```python from pyecharts.charts import Bar from pyecharts import options as opts # 创建一个柱状图实例 bar = Bar() # 添加数据 bar.add_xaxis(["A", "B", "C", "D"]) bar.add_yaxis("系列1", [10, 20, 30, 40]) # 设置splitline样式 bar.set_global_opts( yaxis_opts=opts.AxisOpts( splitline_opts=opts.SplitLineOpts( is_show=True, # 显示分隔线 line_style=dict( color="#000", # 分隔线颜色 type_="dashed", # 分隔线类型为虚线 width=2, # 分隔线宽度 ) ) ) ) # 渲染图表到文件 bar.render("bar_chart_with_splitline.html") ``` 在这个例子,Y轴的分隔线被设置为显示,并且定义了颜色、类型(虚线)、宽度等样式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值