Blogger Information
Blog 42
fans 4
comment 0
visits 30548
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3.21PHP线上培训作业
小丑的博客
Original
842 people have browsed it

线上培训第五天

代码:

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Css选择器</title>
	<style type="text/css">
		
		/*为input text类型属性设置样式*/
		input[type="text"]{
			border-bottom: 1px solid #ff8888;  
			border-top:0px;  
			border-left:0px;  
			border-right:0px;  
		}
		/*为input radio类型属性设置样式*/
		input[type="radio"]{
			width: 13px;
            height: 13px;
            opacity: 1;
		}
				
		/*h2 元素设置样式*/
		caption {
			text-align: center;
			border: 2px solid #ff8888;
			padding: 2px 4px;			
			border-radius: 50px;
		}
		
		/*table 元素设置样式*/
		table{
			border-collapse: collapse;
			width: 500px;
		}
		tr td{
			padding: 0px;
			border: 1px solid black;
		}
		/*class累设置样式*/
		.td_one{
			text-align:  right;
		}
	</style>
</head>
<body>
	<table align="center">
		<caption align="center">CSS样式选择器</caption>
		<tr>
			<td class="td_one"><label for="customer">姓名</label></td>
			<td><input type="text" name="userName" id="customer" placeholder="请输入行姓名"></td>
		</tr>
		<tr>
			<td class="td_one"><label for="iPhone">电话</label></td>
			<td><input type="text" name="iPhone" id="iPhone" placeholder="请输入手机号码"></td>
		</tr>
		<tr>
			<td class="td_one">兴趣爱好</td>
			<td>
				<input type="radio" name="love" checked="true">跑步  <input type="radio" name="love">旅游
				<input type="radio" name="love">吃鸡  <input type="radio" name="love">为爱情鼓掌
			</td>
		</tr>
	</table>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

手抄代码:

1.jpg2.jpg

Correction status:qualified

Teacher's comments:这两天的作业已经检查! 完成的很不错哦!!继续保持啊!!
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post