`
schy_hqh
  • 浏览: 552180 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

CSS---小例

 
阅读更多

 

可输入内容的表格

<html>
	<head>
		<style type="text/css">
			table,table td {
				border: thin solid black;
				border-collapse: collapse;
			}
			table td {
				padding: 20px;
			}
			
			input {
				border: none;
			}
		</style>
	</head>

	<body>
		<table>
			<tr>
				<th>姓名</th>
				<th>电话</th>
			</tr>
			<tr>
				<td><input type="text" name="uname1"/></td>
				<td><input type="text" name="phoneNumber1"/></td>
			</tr>
			<tr>
				<td><input type="text" name="uname2"/></td>
				<td><input type="text" name="phoneNumber2"/></td>
			</tr>
		</table>

	</body>
</html>

 

 

 

<html>
	<head>
		<style type="text/css">
			input {
				border: none;
				border-bottom: #000 1px solid;
			}
		</style>
	</head>

	<body>
		username:<input type="text" name="uname"/> 
		password:<input type="text" name="pwd"/> 
	</body>
</html>

 

 

  • 大小: 9.9 KB
  • 大小: 3.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics