信息排列效果-笔记

 示例:

https://wxygoing.github.io/learn/%E4%BF%A1%E6%81%AF%E6%8E%92%E5%88%97%E6%95%88%E6%9E%9C/informationSortStyle-all.html

.bottom {
			height: 40px;
			line-height: 40px;
			text-align: center;
			background-color: #ccc;
			#margin-top: 100px;
			#clear: both;
			#float: left;   /*父元素float,子元素text-align: center;无效,解决将子元素设为浮动或者清除浮动*/
			#width: 100%;
		}

清除浮动示例:

https://wxygoing.github.io/learn/%E4%BF%A1%E6%81%AF%E6%8E%92%E5%88%97%E6%95%88%E6%9E%9C/clearFloat.html

.box:after {
		    content: "";
		    height: 0;
		    display: block;
		    visibility: hidden;
		    clear: both;
		}

		.box {
		    zoom: 1;  //after伪类,触发IE下haslayout,使元素根据自身内容计算宽高,它的效果和height:1%一样。
		}

清除浮动参考文章: 

 https://www.cnblogs.com/fanyj/p/4431737.html

 https://blog.csdn.net/promisecao/article/details/52771856

https://blog.csdn.net/aiyawei123/article/details/80810527

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值