为什么align-items-center不起作用?

时间:2018-08-23 13:23:54

标签: html twitter-bootstrap web bootstrap-4

justify-content-center正常工作,但是align-items-center

HTML代码:

<div class="container h-100">
   <!--Another content-->
  <div class="footer bg-dark ">
        <div class="row justify-content-center align-items-center">
        <span >&copy 2014 Keepsake. All rights reserved. Theme by 
         elemis</span>
    </div>
    </div>
</div>

Css:

div.footer{
width: 100%;
height: 150px;
span{
    color:white;
}
} 

1 个答案:

答案 0 :(得分:-1)

display: block添加到您的div.footer中可能会起作用。