display屬性實現BBS中欄目點選隱藏功能
阿新 • • 發佈:2019-02-06
<html>
<head>
<title>DIV+CSS頁面佈局display</title>
<style>
a:hover{
position:relative;
bottom:2px;
left:2px;
}
#main {
position:absolute;
left:1px;
top:1px;
height:100px;
width:100px;
background:#FF0000;
z-index:-1;
}
#dis{
display:none; //文件流隱藏,位置不在 ,bbs欄目點選隱藏此原理
}
</style>
</head>
<body>
<div id="dis">
<a href=" www.totoweiyu.com">TOTO潔具</a><br>
<a href="www.totoweiyu.com">TOTO潔具</a><br>
<a href="www.totoweiyu.com">TOTO潔具</a><br>
<a href="www.totoweiyu.com">TOTO潔具</a><br>
<a href="www.totototo.cn">TOTO衛浴官方網站</a><br>
<a href=" www.totototo.cn">TOTO衛浴官方網站</a><br>
<a href="www.totototo.cn">TOTO衛浴官方網站</a><br>
</div>
ccccccccccccccccccccccccccccccccccccccccccccccccccccc<br>
<DIV id="main">
</DIV>
</body>
</html>