认识CSS样式(第三部分-盒子模型)

本文回忆了作者三年级时因胆怯而不敢参与课堂互动的经历,并分享了一次公开课经历如何促使她克服恐惧,开始勇敢地表达自己。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>盒子边框</title>
<style type="text/css">
div{border-bottom-color:#F00;
	border-bottom-width:10px;
	border-bottom-style:dotted;
	border-left-color:#F00;
	border-left-style:dotted;;
	border-left-width:10px;
	border-right-color:#F00;
	border-right-style:dotted;;
	border-right-width:10px;
	border-top-color:#F00;
	border-top-style:dotted;;
	border-top-width:10px;}
/*简写*/
.first{ border-bottom:2px solid #F00;
	border-top:2px solid #F00;
	border-left:2px solid #F00;
	border-right:2px solid #F00;
	margin:10px;/*外边界,上下左右宽度相等*/
	padding:15px;/*内填充,上下左右宽度相等*/}
.second{  border-bottom:2px solid #F00;
	border-top:2px solid #F00;
	border-left:2px solid #F00;
	border-right:2px solid #F00;
	padding:15px;
	margin:10px;}
</style>
</head>

<body>
<div class="first">
	<h1>勇气</h1>
	<p>三年级的时候,我还是一个胆小如鼠的小女孩,上课从来不敢回答老师的问题,生怕回答错了,老师会批评我。学校举办的活动我也很少参加。</p>
    <p>到了三年级下学期,我们班上了一节公开课。老师提了一个很简单的问题。很多人都举手回答。甚至有很多成绩比我差的,我看了一下周围,就我没举手。</p>
</div>
<div class="second">
<ul>
	<li>水果
    	<ul>
    		<li>苹果</li>
     		<li>荔枝</li>
        	<li>香蕉</li>
        </ul>
    </li>
    <li>蔬菜
    	<ul>
        	<li>白菜</li>
            <li>胡萝卜</li>
            <li>西红柿</li>
        </ul>
    </li>
</ul>
</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_33151859

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值