Home > Web Front-end > HTML Tutorial > How to modify the style sheet_html/css_WEB-ITnose

How to modify the style sheet_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:00:24
Original
996 people have browsed it

The original web page nesting situation is that form1 is nested in the searchdiv. Now I need to change the body part to the following code:

<body>   <form id="form1" name="form1" method="post" runat="server">    <div id="admin">        <ul id="nav1">            <li>                <img src="images/administrator_pencil.png" width="58" height="62" />                <ul>                    <li><a href="EditInformation.aspx">个人资料</a></li>                    <li><a href="Default.aspx">退出登录</a></li>                </ul>            </li>        </ul>    </div>    <div id="searchdiv">            <input type="search" id="search" name="search" placeholder="学号或者姓名" runat="server" />            <input name="submit" type="submit" id="submit" value=""                runat="server"/>            </div>   </form></body>
Copy after login

At this time, search and submit The style will disappear. How should I modify it in the style sheet?
#searchdiv #form1 #submit {    background-color: transparent;    background-image: url(images/find.png);    height: 40px;    width: 40px;    position: absolute;    left: 505px;    top: 2%;}#searchdiv #form1 #search {    height: 40px;    width: 500px;    border: 1px solid #333333;}
Copy after login


Reply to discussion (solution)

#form1 #searchdiv #submit {    background-color: transparent;    background-image: url(images/find.png);    height: 40px;    width: 40px;    position: absolute;    left: 505px;    top: 2%;} #form1 #searchdiv #search {    height: 40px;    width: 500px;    border: 1px solid #333333;}
Copy after login


Actually this is enough , it is best to define a style name

#submit {    background-color: transparent;    background-image: url(images/find.png);    height: 40px;    width: 40px;    position: absolute;    left: 505px;    top: 2%;} #search {    height: 40px;    width: 500px;    border: 1px solid #333333;}
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template