ionic2 html页面按钮底部

时间:2017-08-01 01:42:45

标签: css html5 ionic2

page.html中

<div padding class="about-info">
      <a ion-button color="light" href="tel:1800889958">
      立即拨打
      </a>
</div>

这是一个数字调用函数,我在scss中设置将它放在页面底部,但函数没有显示。

page.scss

.about-info {
  text-align: center;
  background-color: #F44336;
  width: 100%; 
  height: 100%;
}
.about-info a{
  vertical-align: bottom;
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center
}

1 个答案:

答案 0 :(得分:1)

我认为您最好的选择是使用footer component

</body>