html代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <head>
<title>记帐本</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body> <div class="biaoti"><font face="宋体">记账本</font></div> <div class="logo"><!--这一步是创建图片的容器,方便待会儿对图片进行处理--> <img src="img\more.png" width="50" height="50"> <div class="form" align="left"> <form> <ul> <li><a href="add.jsp">记账</a></li> <li><a href="change.jsp">修改账本</a></li> <li><a href="check.jsp">查询</a></li> <li><a href="delete.jsp">删除账目</a></li> <li><a href="all.jsp">账目总览</a></li> </ul> </form> </div> </div> </body> </html>
|
css代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| body { margin: 0px; }
ul { position:absolute;
list-style: none; top:-10px; left:-8px; text-align:center;
}
.biaoti { text-align: center; font-weight: bold; font-size: 30px; text-shadow:5px 5px 5px lightgrey }
a { text-decoration: none; }
a:link { color: #636363 }
a:visited { color: #808080 }
a:hover { color: #c0c0c0; }
a:active { color: #808080 } img{ position:absolute; right:35px; } .form { position:absolute; width: 120px; height: 110px; margin: 0px; top:50px; display: none; } .logo{ position:absolute; width: 120px; }
.logo:hover .form { display: block; }
|
点这里请我吃个小蛋糕吧~~
WeChat Pay
Alipay
Welcome to my other publishing channels