【发布时间】:2019-05-11 08:37:19
【问题描述】:
我正在努力让 bulma 用背景颜色填充我的整个列高。相反,它似乎只将背景颜色应用于column div 中的元素。
我希望左栏的紫色背景填满页面的整个高度。
这是我的 HTML...
<template>
<div class="page">
<div class="columns is-gapless is-desktop is-vcentered">
<div class="column has-background-primary">
<h1 class="title is-1 has-text-white">SEPA { Logging }</h1>
</div>
<div class="column">
<section class="login-form">
<b-field label="Username" type="is-success" message="This username is available">
<b-input value="johnsilver" maxlength="30"></b-input>
</b-field>
<b-field label="Password">
<b-input type="password" value="iwantmytreasure" password-reveal></b-input>
</b-field>
<b-field>
<button class="button is-primary">Login</button>
</b-field>
</section>
</div>
</div>
</div>
</template>
这是我希望填满整个背景的那一点..
<div class="column has-background-primary">
<h1 class="title is-1 has-text-white">SEPA { Logging }</h1>
</div>
还有我的 CSS...
.columns {
display: flex;
height: 100vh;
}
.login-form {
padding-left: 50px;
padding-right: 50px;
}
【问题讨论】: