Flexbox 没有响应?
我试图使用 bulma 将这两个 div 水平居中,但它没有响应。我尝试过 flex-row、对齐中心、对齐中心,但没有任何效果。对此我还能做什么?
**EDIT TO ADD MORE CODE**
<!-- contact form -->
<section class="contact section is-small">
<h2 class="contact-header is-size-1"> Contact Me</h2>
<!-- Form -->
<div class="contact-form is-flex is-flex-direction-row">
<div class="form">
<form>
<p>Name</p>
<input type="text" class="input is-normal" placeholder="First Name">
<input type="text" class="input is-normal" placeholder="Last Name">
<p>E-mail Address</p>
<input class="input" type="email" placeholder="E.g. '[email protected]'">
<p>Message</p>
<textarea class="fixed size textarea" placeholder="What's up?"></textarea>
<button class="button">Submit</button>
</form>
<div>
<img src="" class="">
</div>
</div>
</div>
</section>
I'm trying to center these two divs horizontally using bulma and it's just not responding. I've tried flex-row, justified center, align center and nothing it working. What else can I do about this?
**EDIT TO ADD MORE CODE**
<!-- contact form -->
<section class="contact section is-small">
<h2 class="contact-header is-size-1"> Contact Me</h2>
<!-- Form -->
<div class="contact-form is-flex is-flex-direction-row">
<div class="form">
<form>
<p>Name</p>
<input type="text" class="input is-normal" placeholder="First Name">
<input type="text" class="input is-normal" placeholder="Last Name">
<p>E-mail Address</p>
<input class="input" type="email" placeholder="E.g. '[email protected]'">
<p>Message</p>
<textarea class="fixed size textarea" placeholder="What's up?"></textarea>
<button class="button">Submit</button>
</form>
<div>
<img src="" class="">
</div>
</div>
</div>
</section>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这会帮助你
This will help you