利用CSS的Sass预处理器(框架)来制作居中效果(4)
发布时间:2020-03-17 09:56 所属栏目:52 来源:站长网
导读:margin:-($width/2)#{00}-($height/2); }@elseifnot$height{ width:$width; margin-left:-($width/2); transform:translateY(-50%); }@else{ height:$height; margin-top:-($height/2); transform:translateX(-50%)
margin: -($width / 2) #{0 0} -($height / 2); } @else if not $height { width: $width; margin-left: -($width / 2); transform: translateY(-50%); } @else { height: $height; margin-top: -($height / 2); transform: translateX(-50%); } }
(编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读