0

我试图让我的搜索框向右浮动,但是当我这样做时,它会颠倒输入的顺序,以便“搜索”在左侧。应该反过来。我知道你可以颠倒列表项的元素顺序,但我试过了,它仍然没有用。这是我的标记:

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" type-"text/css" href="style.css">
</head>
<body>

    <div class="container_12">


            <h1 class="grid_12">Overhaulers</h1>

            <div class="navigation grid_5">

            <nav>

                <a href="default.asp">Home</a> 
                <a href="insert.asp">Insert</a>
                <a href="delete.asp">Delete</a>
                <a href="edit.asp">Edit</a>

                <%

                if Session("username")="" then
                Response.write("<a href=""login.asp"">Login </a>")
                else 
                Response.write("<a href=""logout.asp"">Logout </a>")
                dim greetingName
                greetingName = Session("username")
                response.write "Hello " + greetingName + "!"
                end if

                response.write "</div>"

                response.write "<div class=""grid_5 prefix_2"">"&_
                "<form id=""search""action=""results.asp"" method=""get"">" &_
                "<input type=""hidden"" name=""stage"" value=""2"">"&_
                "<input type=""text"" id=""search"" name=""search"">" &_
                "<input id=""searchsubmit""type=""submit"" value=""Search"">" &_
                "</form>"&_
                "</div>"



                %>




            </nav>



    </body>

还有我的造型:

#search {
    float:right;
}
4

1 回答 1

0

怎么样

#search {
    float:right;
}

#search input {
    float:left;
}
于 2013-10-27T07:50:29.323 回答