1
私は、中央に配置する必要があるボタンとして3つのリンクを設定したフッターを持っています。マテリアライズCSSを使用して、私は含まれているdivと最も外側のラッパー行のdivにcenter-alignクラスを関連付けましたが、どちらもうまくいかないようです。ここに私のコードです。どんなアドバイスも非常に高く評価されます。ありがとう。フッタ内のリンクをマテリアル化して水平に中央に置く
.button {
position: relative;
margin-bottom: 0.5em;
padding: 0.8em 1.7em;
overflow: hidden;
background-color: #840081;
color: #fff;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.material-wave {
position: absolute;
width: 20px;
height: 20px;
margin-top: -10px;
margin-left: -10px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: scale(0);
transition: transform 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940), opacity 0.3s 0.4s;
will-change: transform, opacity;
}
<div class="row">
<div class="col l4 m4 valign-wrapper">
<a href="" class="button center-align">Button1</a>
</div>
<div class="col l4 m4 valign-wrapper">
<a href="" class="button center-align">Button2</a>
</div>
<div class="col l4 m4 valign-wrapper">
<a href="" class="button center-align">Button3</a>
</div>
</div>
ブリリアント!それがそれでした。本当にありがとう! – alirk