3-14练习
来源:3-23 margin外边距属性
慕粉0026544749
2017-07-13 01:04:02
3-14练习怎么做
2回答
好帮手慕糖
2017-07-13
你好,可以给同学讲解思路,但是建议不要直接给出代码哟,讲解思路的同时也可以帮助你自己把思路在梳理一遍。祝学习愉快!
前端端
2017-07-13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>border属性</title>
<style type="text/css">
.container{
width:200px;
height:200px;
background-color:pink;
padding:50px 0 0 100px; /*补充样式*/
}
.content{
width:100px;
height:100px;
background-color:orange;
padding:30px 30px 0 30px; /*补充样式*/
}
span{background-color:yellow;}
</style>
</head>
<body>
<div class="container">
<div class="content">
<span>
我是span元素
</span>
</div>
</div>
</body>
</html>
相似问题