html作业博客,3.23作业

3.23CSS多种对齐方式

实例

html>

CSS的多种对齐方式训练

body{

height: 500px;

width: 400px;

}

.bt{

height: 30px;

width: 100%x;

background-color: skyblue;

/*行内文字居中*/

text-align: center;

}

.bj{

/*background-color: transparent;*/

background-image: url(images/1.jpg);

/*背景设置不重复,并铺满*/

background-repeat: no-repeat;

background-size: cover;

}

.sy{

height: 40px;

width: 100%;

text-align: right;

}

.lb{

height: 100px;

width: 100%;

/*列表剧中对其*/

margin: auto;

display: table-cell;

vertical-align: middle;

}

.lb ul{

/*无序列表模拟成有序列表*/

list-style-type: decimal;

}

.lb ul li{

/*列表间距拉大*/

padding: 5px;

}

.lb ul li a{

/*去除下划线*/

text-decoration: none;

}

.lb ul li a:hover{

/*鼠标移动到对应a标签,出现下划线字体颜色红色并放大*/

text-decoration: underline;

color: red;

font-size:1.1em;

}

畅销小说排行

更多分类

点击查看总榜

  • 魔天
  • 野村那些事儿
  • 山村野花香
  • 山村高手
  • 乡村小仙医
  • 天庭急救电话

运行实例 »

点击 "运行实例" 按钮查看在线实例

手写代码:

177d2074e0d818852bde06e95eff8d4f.png

2efbda131537f34cc2273b67f6e8be6b.png

27fa076da44b7b523cdd52a6c8fbd9b7.png

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值