亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

JQ實(shí)現(xiàn)的三級(jí)菜單

オリジナル 2019-05-06 13:10:34 245
サマリー:<!DOCTYPE html> <html> <head>     <meta charset="utf-8">     <title>document</title>    &
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>document</title>
    <script type="text/javascript" src="./js/jquery.min.js"></script>
    <style>
    *{margin: 0px;padding: 0px;}
    .menu {
width: 453px;
height: 35px;
margin: 100px auto;
background: rgb(252, 252, 252);
color: #fff;
border:1px solid rgb(0,94,218);
border-radius: 5px;
}
ul{
list-style: none;
}
ul li:hover{
background:rgb(0,94,218);
color:#fff;
}
ul li {
width: 150px;
height: 35px;
line-height: 35px;
text-align: center;
float: left;
border-right: 1px solid rgb(0,94,218);
cursor: pointer;
color:rgb(0,94,218)
}
.twobox li {
width: 150px;
height: 30px;
line-height: 30px;
background: rgb(240, 240, 240);
color: rgb(0, 94, 218);
font-size: 14px;
position: relative;
border:0px;
}
.twobox li:hover {
background: rgb(22, 106, 233);
color: #fff;
}
.three {
display:none;
position: absolute;
top: 0px;
left: 150px;
}
.three li {width: 120px;height: 30px;line-height: 30px;border: 0;}
.twobox{display:none;}
    </style>
</head>
<body>
<div class="menu">
<ul class="one">
<li>一級(jí)菜單</li>
<li>二級(jí)菜單2
<ul class="twobox">
<li>二級(jí)1</li>
<li class="two">二級(jí)2
<ul class="three">
<li>產(chǎn)品1.1</li>
<li>產(chǎn)品1.2</li>
<li>產(chǎn)品1.3</li>
<li>產(chǎn)品1.4</li>
</ul>  
</li>
<li class="two">二級(jí)3
<ul class="three">
<li>產(chǎn)品3.1</li>
<li>產(chǎn)品3.2</li>
<li>產(chǎn)品3.3</li>
<li>產(chǎn)品3.4</li>
</ul>  
</li>
<li>二級(jí)4</li>
</ul>
</li>
<li>二級(jí)菜單2
<ul class="twobox">
<li>公司新聞1</li>
<li class="two">公司新聞2
<ul class="three">
<li>公司新聞1.1</li>
<li>公司新聞1.2</li>
<li>公司新聞1.3</li>
</ul>  
</li>
<li>公司新聞3</li>
<li>公司新聞4</li>
</ul>
</li>
</ul>
</div>  
<script type="text/javascript">
$('.one>li').mouseover(function(){
$(this).find('.twobox').show(500)
})
$('.one>li').mouseleave(function(){
$(this).find('.twobox').hide(500)
})
$('.two').mouseover(function(){
$(this).find('.three').show(500)
})
$('.two').mouseleave(function(){
$(this).find('.three').hide(500)
})
</script>
</body>
</html>


添削の先生:查無(wú)此人添削時(shí)間:2019-05-07 09:37:06
先生のまとめ:完成的不錯(cuò)。每行jq語(yǔ)句,結(jié)束要增加;號(hào)。繼續(xù)加油。

手記を発表する

人気のある見(jiàn)出し語(yǔ)