这个就相当于购物网站的定位效果(点击女装啊,就会定位到女装那里去)….话不多少,看代码吧!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
p{
line-height: 50px;
}
#dh{
border: 1px solid #000000;
width: 100%;
height: 50px;
background-color: #FFFFFF;
position: fixed;/*固定定位*/
top: 0px;
}
#dh2{
border: