我该如何调整我的搜索按钮向右? [英] How can I align my search button to the right?

查看:107
本文介绍了我该如何调整我的搜索按钮向右?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是在前端网页设计或CSS精通。利用基金会pre-制作模板,但是我的code一个搜索按钮没有对准像例如按钮。

I'm not well versed in front end web design or CSS. Using a pre-made template from Foundation, however my code for a search button is not aligning like the example button.

使用这个模板: http://foundation.zurb.com/templates/workspace.html

谁能告诉我我怎么能在PIC其中蓝色按钮位于移动搜索按钮向右?

Can someone tell me how I can move the search button to the right as in pic where the blue button is located?

这是我现在使用的是什么:

This is what I am using now:

<输入类型=提交值=搜索的风格=浮动:权利;>

小提琴:搜索按钮code

<ul class="right">
<li class="search">
    <li class="has-button">
        /* Original template form */
        {#<form>#}
            {#<input type="search">#}
        {#</form>#}

        /* My form with code */
        <form action="{{ path('sym_corp_search') }}" method="GET">
            <label><input type="search" name="q" value={{ app.request.query.get('q') }}></label>
            <input type="submit" value="Search" style="float: right;">
        </form>
    </li>
</li>

/* Original form button in blue */
<li class="has-button">
    <a class="small button" href="#">Search</a>
</li>

推荐答案

使用基础类,你能设法用自己的输入执行此布局,您的code将是这样的:

Using the foundation classes, you can manage to perform this layout with your own inputs, your code will look like this:

<ul class="right">
    <form action="{{ path('acme_demo_search') }}" method="GET">
        <li class="search">
            <label><input type="search" name="q" value="{{ app.request.query.get('q') }}" /></label>
        </li>
        <li class="has-button">
            <input type="submit" value="Search"  class="small button" />
        </li>
    </form>
</ul>

这篇关于我该如何调整我的搜索按钮向右?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆