分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

html记录

发布时间:2023-09-06 01:30责任编辑:胡小海关键词:暂无标签

1.如果li横排用display:inline-block; 则li之间不能有间隔 必须连着一起,所以才一般用float:left;

.today-wrap{ ?position: relative; ?background: $white; ?height: 220px; ?padding-top: 40px; ?padding-bottom:40px; ?li{ ???float: left; ???width: 50%; ???&:last-child{ ?????&:before{ ???????content: ‘‘; ???????position: absolute; ???????left:50%; ???????width: 1px; ???????height: 80%; ???????top:20px; ???????background:$grey; ?????} ???} ?} ?.today-recommend{ ???text-align: center; ???color: $blue; ???.recommend-num{ ?????font-size: 56px; ???} ???.recommend-unit{ ?????font-size: 24px; ???} ???.recommend-name{ ?????font-size: 26px; ?????color:$grey; ???} ?}}

  

<div class="today-wrap"> ???????<ul> ???????????<li class="today-recommend"> ???????????????<a href="#"> ???????????????????<div> ???????????????????????<span class="recommend-num">32</span> ???????????????????????<span class="recommend-unit">笔</span> ???????????????????</div> ???????????????????<div class="recommend-name"> ???????????????????????今日推广订单 ???????????????????</div> ???????????????</a> ???????????</li> ???????????<li class="today-recommend"> ???????????????<a href="#"> ???????????????????<div> ???????????????????????<span class="recommend-num">260.00</span> ???????????????????????<span class="recommend-unit">元</span> ???????????????????</div> ???????????????????<div class="recommend-name"> ???????????????????????今日获得收益 ???????????????????</div> ???????????????</a> ???????????</li> ???????</ul> ???</div>

  

html记录

原文地址:http://www.cnblogs.com/tonnytong/p/8028829.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved