html 中常用盒子的名称,盒子模型和编程中最常用的四种对其方案----2018年8月16日...

html>

Title

body{

padding: 0;

margin: 0;

border: #00CC66 solid 2px;

}

div {

border: #0000FF 10px solid ;

width: 150px;

height: 150px;

padding: 50px;   /* 内边距*/

margin: 50px;     /*外边距*/

}

编程实现盒模型的基本要素: 内容

.box1 {

width: 200px;

height: 200px;

background-color: #00CC66;

text-align: center;

}

a {

line-height: 200px;

text-decoration: none;

}

我爱中国

.box2{

width: 200px;

height: 200px;

background-color: #0000FF;

text-align:center;

display: table-cell;

vertical-align:middle;

}

我爱中国

伟大领袖毛主席领导我们向前进

.box3 {

width: 200px;

height: 200px;

background-color: lightblue;

display:table-cell;

vertical-align: middle;

}

.box33{

width:50px;

height:50px;

background-color:lightcoral;

margin:auto;

}

.box4{

width: 200px;

height: 200px;

background-color:lawngreen;

display: table-cell;

text-align: center;

}

ul{

padding:0;

margin:0;

}

li{

display: inline;

}

  • 1
  • 2
  • 3
  • 4
  • 5

1465fa76daf1795fc05453d8be5a7f9f.png

c7f237f5fb9076dcb575adc5e3fe9456.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值