[英]css - input field with inside button in wordpress site
I am not very good in css and designing websites. 我在CSS和设计网站方面不是很好。
I don't get the rid of it. 我没有摆脱它。
I want to add an input field with inside button for submit. 我想添加一个带有内部按钮的输入字段以进行提交。 This is all inside a wordpress website as a shortcode.
所有这些都在wordpress网站内作为简码。
It should look like this: 它看起来应该像这样:
HTML 的HTML
.event_form_autocomplete { width: 90%; padding: 15px; border: 1px solid #002652; color: #002652; font-size: 15px; } .event_form_submit { margin-left: -59px; padding: 14px; width: 50px; background: #002652; color: white; border: 0; } .event_form_arrow { color: white; position: absolute; margin-top: 17px; margin-left: -23px; }
<input class="form-control event_form_autocomplete" id="autocomplete" name="eventAdress" placeholder="Bitte gebe Sie Ihre PLZ oder Ort ein ..." onFocus="geolocate()" type="text" required> <input class="event_form_submit" type="submit" value="" /><i class="event_form_arrow icon-right-open white"></i>
http://jsfiddle.net/s5GVh/2953/ http://jsfiddle.net/s5GVh/2953/
But it looks like this in 但是看起来像这样
Chrome 铬
All with the newest version. 全部具有最新版本。
Try this code 试试这个代码
HTML 的HTML
<div class="input-wrapper"> <input class="form-control event_form_autocomplete" id="autocomplete" name="eventAdress" placeholder="Bitte gebe Sie Ihre PLZ oder Ort ein ..." onFocus="geolocate()" type="text" required> <button class="event_form_submit" type="submit" value="" /><i class="event_form_arrow icon-right-open white"></i></button> </div>
CSS 的CSS
.input-wrapper{ position: relative; border: 1px solid #002652; } .event_form_autocomplete { width: 100%; padding: 15px; color: #002652; font-size: 15px; border-width: 0; box-sizing: border-box; } .event_form_submit { margin: 0; padding: 14px; width: 50px; background: #002652; color: white; border: 0; position: absolute; top: 4px; right: 4px; height: 39px; } .event_form_arrow { color: white; position: absolute; margin-top: 17px; margin-left: -23px; }
Hope it's work for you -webkit-padding-before:10px;
希望它对您
-webkit-padding-before:10px;
.event_form_submit {
margin-left: -59px;
padding: 14px;
-webkit-padding-before:10px;
width: 50px;
background: #002652;
color: white;
border: 0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.