css - 如何将此时事通讯注册表单居中?

标签 css web skeleton-css-boilerplate

我正在尝试将来自 here 的时事通讯注册表单居中.我已经尝试了一切,但它只是拒绝居中。我正在使用骨架 CSS 框架。

最佳答案

使用此代码。我不知道骨架。总线它的工作。

<section class="news">
            <h2 class="">Get Notified for Early Access</h2>
            <form novalidate="" target="_blank" class="validate" name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" method="post" action="//KloudTrader.us11.list-manage.com/subscribe/post?u=8ce5d035a2693858b995c33e9&amp;id=d252a06fa4">
                <div class="row">
                    <div class="columns">
                        <label style="display:none" for="mce-EMAIL">
                            Email
                        </label>
                        <input type="email" id="mce-EMAIL" class="email required u-full-width" name="EMAIL" value="Enter your email">
                        <div class="clear" id="mce-responses">
                            <div style="display:none" id="mce-error-response" class="response"></div>
                            <div style="display:none" id="mce-success-response" class="response"></div>
                        </div>
                        <div style="position: absolute; left: -5000px;">
                            <input type="text" value="" tabindex="-1" name="b_8ce5d035a2693858b995c33e9_d252a06fa4">
                        </div>
                    </div>
                    <div class="columns">
                        <input type="submit" class="button u-full-width" id="mc-embedded-subscribe" name="subscribe" value="Subscribe">
                    </div>
                </div>
                <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
            </form>
        </section>



.news {text-alig:center}
.news .columns {float: none; display: inline-flex;}

关于css - 如何将此时事通讯注册表单居中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32945683/

相关文章:

javascript - @reach/router 嵌套 protected 路由

php - 如何更改xdebug输出的颜色?

skeleton-css-boilerplate - 如何使用 Skeleton 设置嵌套网格

html - 如何制作骨架样板模板 'unresponsive'

javascript - 如何更改骨架自动加载的样式表的路径

html - 为什么我的@media 屏幕不保存

html - 使用 class active Bootstrap 更改 li 的 css

css - GWT 2.5.1 - 限制下拉列表中可见条目的数量 (ValueListBox)

css - 是否可以在 SASS 中获取变量的名称?

css - View 底部中心的中心按钮