gpt4 book ai didi

CSS 元素不会排列

转载 作者:行者123 更新时间:2023-11-28 13:35:56 24 4
gpt4 key购买 nike

我刚刚在我的网站中嵌入了一个时事通讯字段和按钮,该字段位置很好,但按钮太低了。我尝试了不同的样式,但似乎没有任何效果。

http://www.pazzle.co.uk/

就在横幅下面。

   <!-- Begin MailChimp Signup Form -->

<div id="mc_embed_signup">
<form action="http://pazzle.us6.list-manage.com/subscribe/post?u=7167bf73b26b7bd1298d4f925&amp;id=a48b73e435" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<div class="clear">
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
</div>
</form>
</div>

<!--End mc_embed_signup-->

#mce-EMAIL {float:left;}
#mc-embedded-subscribe {}
/* MailChimp Form Embed Code - Slim - 08/17/2011 */
#mc_embed_signup form {display:block; }
#mc_embed_signup h2 {font-weight:bold; padding:0; margin:15px 0; font-size:1.4em;}
#mc_embed_signup input {border:1px solid #999; -webkit-appearance:none;}
#mc_embed_signup input[type=checkbox]{-webkit-appearance:checkbox;}
#mc_embed_signup input[type=radio]{-webkit-appearance:radio;}
#mc_embed_signup input:focus {border-color:#333;}
#mc_embed_signup .button {clear:both; background-color: #aaa; border-radius:4px; color: #FFFFFF; cursor: pointer; font-size:15px; font-weight: bold; line-height: 28px; padding:0; text-align: center; text-decoration: none; vertical-align: top; white-space: nowrap; width: auto;}
#mc_embed_signup .button:hover {background-color:#777;}
#mc_embed_signup .small-meta {font-size: 11px;}
#mc_embed_signup .nowrap {white-space:nowrap;}
#mc_embed_signup .clear {clear:none; display:inline; float:left;}

#mc_embed_signup input.email {display:block; padding: 5px 0; text-indent: 8px; width: 120px !important; margin-left: 13px;margin-top: 5px; float:left;}
#mc_embed_signup input.button {display:block; min-width: 50px; height: 28px; margin-top: 5px;}

#mc_embed_signup div#mce-responses {float:left; top:-1.4em; padding:0em .5em 0em .5em; overflow:hidden; width:90%;margin: 0 5%; clear: both;}
#mc_embed_signup div.response {margin:1em 0; padding:1em .5em .5em 0; font-weight:bold; float:left; top:-1.5em; z-index:1; width:80%;}
#mc_embed_signup #mce-error-response {display:none;}
#mc_embed_signup #mce-success-response {color:#529214; display:none;}
#mc_embed_signup label.error {display:block; float:none; width:auto; margin-left:1.05em; text-align:left; padding:.5em 0;}
#mc_embed_signup {float:left; height: 30px;}

最佳答案

尝试将 float: left 添加到 #mc_embed_signup .clear div 和 #mc_embed_signup input.email 文本框

关于CSS 元素不会排列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12985377/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com