.logo{ background-image: url('image/logo.png'); width:40px; height: 40px; position:relative; top:50%; transform: translateY(-50%); background-repeat: no-repeat; background-position: 50% 50%; }
css logo垂直居中样式
猜你喜欢
转载自blog.csdn.net/fisher_yu01/article/details/80163343
今日推荐
周排行