CSS列表样式和表格样式

CSS列表样式和表格样式

在这里插入图片描述样例跳转:样例二 <—点这跳转

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>样式</title>
</head>
<body>
<style type="text/css">
h1{
text-decoration: overline;
}
h2{
text-decoration: line-through;
}
h3{
text-decoration: underline;
}
ul.square {list-style-type: square}
#customers{
border-collapse: collapse;
border:1px solid #C0C0C0;
text-align: center;
width:270px;
height: 30px;
}
thead{
color:white;
background:blue;
}
table tr:nth-child(even){
background: red;
color:white;
}
table,td,th{
border:1px solid #C0C0C0;
font-size:15px;
font-style: normal;
font-family:"Times New Roman",Georgia,Serif,serif
}
</style>
<div>
<h1>第1段文字</h1>
<h2>第2段文字</h2>
<h3>第3段文字</h3>
</div>
<div>
列表显示
<ul class="square">
<li>HTML--网页结构</li>
<li>CSS--网页样式</li>
<li>JS--网页交互</li>
</ul>
</div>
<div>
<table id="customers">
<thead>
<tr>
<th>标题1</th>
<th>标题2</th>
<th>标题3</th>
</tr>
</thead>
<tbody>
<tr>
<th>内容11</th>
<th>内容12</th>
<th>内容13</th>
</tr>
<tr>
<th>内容21</th>
<th>内容22</th>
<th>内容23</th>
</tr>
<tr>
<th>内容31</th>
<th>内容32</th>
<th>内容33</th>
</tr>
<tr>
<th>内容41</th>
<th>内容42</th>
<th>内容43</th>
</tr>
</tbody>

</table>
</div>
</body>
</html>

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值