gpt4 book ai didi

html - 网络表格中的间距

转载 作者:太空宇宙 更新时间:2023-11-04 04:23:50 24 4
gpt4 key购买 nike

我在尝试使用 HTML/CSS 分隔和排列表单时遇到了一些问题。

我已经在下面发布了 jsfiddle。

我正在尝试将提交按钮与电子邮件提交表单的边框对齐。

谢谢!

http://bit.ly/1embiFX

HTML

<form target="_blank" class="validate" name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" method="post" action="#">
<input type="email" value="yourname@beerisawesome.com" onblur="if (this.value == '') {this.value = 'yourname@beerisawesome.com';}" onfocus="if (this.value == 'yourname@beerisawesome.com') {this.value = '';}" id="mce-EMAIL" class="required email" name="EMAIL">
<input type="submit" onclick="_gaq.push(['_trackEvent', 'Sign Up', 'Click', 'Mailing List Address Entered']);" id="mc-embedded-subscribe" name="subscribe" value="JOIN" class="submit button">
</form>

CSS

form {
margin: 0;
font-family: 'Merriweather', serif;
height: 75px;

}
input.email {
width: 60%;
height: 75px;
font-family: 'Merriweather', serif;
padding-left: 30px;
font-size: 18px;
color: #c89808;
border: 2px solid #000000;
-webkit-border-top-left-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-bottomleft: 10px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
background-color: transparent;

}

input.email:focus {
outline: none;
}

input.submit {
width: 20%;
margin-left: -5px;
margin-top: 50px;
font-family: league;
font-size: 30px;
color: #efbe2a;
height: 75px;
background: #000000;
-webkit-border-top-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-topright: 10px;
-moz-border-radius-bottomright: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border: none;
letter-spacing: 0.05em;
}

最佳答案

只需更改高度并为 input.email 类添加垂直对齐

height: 69px;
vertical-align:top;

工作演示:http://jsfiddle.net/edisutrisno/8V8dg/3/

关于html - 网络表格中的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18662287/

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