Blogger Information
Blog 34
fans 2
comment 2
visits 22736
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
css表格
AsNwds_MIS王的博客
Original
1005 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>css表格</title>
	<style type="text/css">
	.one td th
		{
			border:1px solid black;
			/*border-radius: 50%;*/
			/*text-align: center;*/
		}

	.one{
			width: 100%
			text-align: center;
			margin: 50px auto;
			border-collapse: collapse;
			background-image: url(timg.jpg);
			background-repeat: no-repeat;
			background-size: cover;
			border-radius: 20px;
					
        }

	/*th,td{ padding: 10px; }*/
	.one th { height: 150px; 
			width: 59px;
			text-align: center;	
	        }
	.one th img{ 
				vertical-align: left;
				border-radius: 50%;
				box-shadow: 5px 5px 5px #888;
			   }

	.one td{
		
			padding: 8px;
			text-align: center;
		    }

	.one caption
		{
			caption-side: top;
			margin-bottom: 40px;
			font-size: 1.6em;
			text-shadow: 5px 6px 5px rgba(0,0,0,3)	
		}
			
	/*.one ul { text-align: center; }*/	


	</style>
</head>
<body>
	
	<table class="one" border="1">
	  <caption>苹果笔记本机型对照表</caption>
		<tr>
			<th>机型</th>
			<th >
				<ul type="none">
					<li><img src="book.jpg" alt="" width="100px"></li>
					<br>
					<li>macbook</li>
				</ul></th>
			<th>
				<ul type="none">
					<li><img src="air.jpg" alt="" width="100px"></li>
					<br>
					<li>macbook air</li>
				</ul>
			</th>
			<th>
				<ul type="none">
					<li><img src="mac.jpg" alt="" width="100px"></li>
					<br>
					<li>macbook pro</li>
				</ul>
			</th>
		</tr>
		
		<tr>
			<td>屏幕</td>
			<td>12 英寸</td>
			<td>13 英寸</td>
			<td>14 英寸</td>
		</tr>
		<tr>
			<td>内存</td>
			<td>4GB</td>
			<td>8GB</td>
			<td>12GB</td>
		</tr>

		<tr>
			<td>硬盘</td>
			<td>128固态</td>
			<td>256固态</td>
			<td>512固态</td>
				
		</tr>

		<tr>
			<td>价钱</td>
			<td>6666</td>
			<td>8888</td>
			<td>9999</td>
		</tr>
		

	</table>

</body>
</html>

运行实例 »

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

微信图片_20180323185511.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