
css
Fighting社火底子
所有的决定都是最好的决定!
展开
-
CSS水平垂直(上下左右)居中的三种方法
/* div上下左右居中的三种方法 */ /* 1 */ position: absolute; left: 50%; top:50%; transform: translate(-50%,-50%); border: orangered 1px solid; /* 2 */ ..原创 2020-07-18 20:55:36 · 1076 阅读 · 0 评论 -
微信小程序文字超过行后隐藏并且显示省略号
单行超出字数隐藏显示省略号 /* 单行隐藏字数,超出按照省略号 */ display: block; width:144px; height: 60rpx; line-height: 40rpx; overflow: hidden; white-space: nowrap; text-overflow:ellipsis;多行:display:-web...原创 2019-01-23 18:05:36 · 1000 阅读 · 0 评论