Home > Web Front-end > HTML Tutorial > 帮我看看这个怎么实现的。。。。。_html/css_WEB-ITnose

帮我看看这个怎么实现的。。。。。_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:32
Original
834 people have browsed it

html css js




我想让下面那个框和百度搜索提示框样式一样 怎么做。

回复讨论(解决方案)

* {            margin:0;            padding:0;        }        body {            margin:20px;        }        div {            position:relative;        }        ul {            list-style-type:none;            border:1px solid #ccc;            position:absolute;            display:none;            border-top:none;        }        li {            padding:5px;        }            li:hover {                background-color:#fc0;            }
Copy after login
Copy after login


<div>        <input type="text" />        <ul>            <li>xhtml</li>            <li>javascript</li>            <li>jquery</li>            <li>sql server</li>            <li>asp.net</li>            <li>c#</li>            <li>other</li>        </ul>    </div>
Copy after login
Copy after login


 <script src="Scripts/jquery-1.9.1.min.js"></script>    <script type="text/javascript">        $("input").keypress(function () {            console.log($(this).val());            $(this).next().show();        });    </script>
Copy after login
Copy after login

http://bbs.csdn.net/topics/390467560

要去掉默认的li的list-style样式

* {            margin:0;            padding:0;        }        body {            margin:20px;        }        div {            position:relative;        }        ul {            list-style-type:none;            border:1px solid #ccc;            position:absolute;            display:none;            border-top:none;        }        li {            padding:5px;        }            li:hover {                background-color:#fc0;            }
Copy after login
Copy after login


<div>        <input type="text" />        <ul>            <li>xhtml</li>            <li>javascript</li>            <li>jquery</li>            <li>sql server</li>            <li>asp.net</li>            <li>c#</li>            <li>other</li>        </ul>    </div>
Copy after login
Copy after login


 <script src="Scripts/jquery-1.9.1.min.js"></script>    <script type="text/javascript">        $("input").keypress(function () {            console.log($(this).val());            $(this).next().show();        });    </script>
Copy after login
Copy after login




那个框怎么覆盖后面的文字啊  

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