订阅表单CSS编辑

时间:2016-04-26 14:09:49

标签: css forms

我需要编辑此订阅表单,以便电子邮箱和按钮都是290px宽并且全部居中。我也想让按钮变黑,而不是有圆角。有人可以帮忙吗?

<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/slim-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica, Arial,sans-serif;  width:290px;}
    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
       We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//thefacefactory.us12.list-manage.com/subscribe/post?u=95d25bd530e274cd2b9abd235&amp;id=411d7026eb" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
    <label for="mce-EMAIL">The Face Factory Newsletter</label>
    <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;" arial-hidden="true"><input type="text" name="b_95d25bd530e274cd2b9abd235_411d7026eb" tabindex="-1" value=""></div>
    <div class="clear"><input type="submit" value="Receive Offers and Beauty Tips" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </div>
</form>
</div>

<!--End mc_embed_signup-->

1 个答案:

答案 0 :(得分:2)

尝试将以下样式添加到现有的CSS Parser.evaluate("3 ^ x", { x: 7 }); 块中:

<style>

你可以see a working example here并在下面演示:

enter image description here