css边框样式

在这里插入图片描述

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
		<style>
			ol{
				width: 500px;
				margin: 0 auto; 
				padding: 8px 24px;
				margin: 6px;
				border:4px outset #aaa;
				list-style-position:inside;
			}
			h2{
				text-align: center;
				padding-bottom:12px;
				border-bottom:5px double #f40; 
			}
			li{
				padding: 4px 0;
				margin:8px 0; 
			}
			li:first-of-type{
				border-bottom: none;
			}
			li:nth-of-type(2){
				border-bottom:2px hiddle #000;
			}
			li:nth-of-type(3){
				border-bottom:2px dotted #000;
			}
			li:nth-of-type(4){
				border-bottom:2px dashed #000;
			}
			li:nth-of-type(5){
				border-bottom:2px solid #000;
			}
			li:nth-of-type(6){
				border-bottom:4px double #000;
			}
			li:nth-of-type(7){
				border:5px groove red;
			}
			li:nth-of-type(8){
				border: 5px ridge red;
			}
			li:nth-of-type(9){
				border: 5px inset red;
			}
			li:nth-of-type(10){
				border: 5px outset red;
			}
		</style>
			
	</head>
	<body>
		<ol>
			<h2>边框样式应用</h2>
			<li>none:默认值,无边框,不受任何指定的border-width值的影响</li>
			<li>hiddle:隐藏边框,IE不支持</li>
			<li>dotted:定义点线</li>
			<li>dashed:定义虚线</li>
			<li>solid:定义实线</li>
			<li>double:定义双实线边框,两条线及其间隔宽度之和等于boder-width的</li>
			<li>groove:根据border-color值定义D凹槽</li>
			<li>ridge:根据border-color值定义D凸槽</li>
			<li>inset:根据border-color值定义D凹边</li>
			<li>outset:根据border-color值定义D凸边</li>
		</ol>
	</body>
</html>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值