homework3

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
 
    .nav {
      height: 40px;
      border-bottom: 1px solid #ccc;
    }
    ul {
      list-style: none;
      width: 1200px;
      margin: 0 auto;
    }
 
    ul li {
      float: left;
      width: 20%;
      height: 40px;
      border-right: 1px solid #ccc;
      box-sizing: border-box;
      text-align: center;
      line-height: 40px;
    }
 
    ul .last {
     border-right: none;
    }
 
    ul li a {
      display: block;
      height: 40px;
      text-decoration: none;
      color: #000;
    }
 
    ul li .app {
      position: relative;
    }
 
    ul li .app .code {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 40px;
      border: 1px solid #ccc;
    }
 
    .app:hover+.code{
      visibility: visible;;
    }
 
   .code{
    visibility: hidden;
   }
 
    
  </style>
</head>
<body>
  <div class="nav">
    <ul>
      <li><a href="#">我要投资</a></li>
      <li><a href="#">平台介绍</a></li>
      <li><a href="#">新手专区</a></li>
      <li><a href="#" class="app">手机微金所<img src="../images/code.jpg" alt="" class="code" ></a></li>
      <li class="last"><a href="#">个人中心</a></li>
    </ul>
  </div>`
 
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       .one{ 
            position: relative;
            width: 700px;
            height: 400px;
            background-image: url(../images/sed.jpg);
            border-width: 4px;
            border-style:solid;
            border-color: orange;
            
        }
 
        .two{
            position: absolute;
            top: 1.5%;
            left: 0.5%;
            width: 708px;
            height: 400px;
            background-color: black;
            
            visibility: hidden;
            
            
            z-index: 1;
        }
 
        .three{
            position: absolute;
            width: 34px;
            height: 34px;
            top: 24%;
            left: 20%;
            visibility: hidden;
            
            z-index: 2;
            
        }
        .one:hover+.two+.three{
            visibility: visible;
            opacity: 0.8;
            
            
 
 
        }
        
    </style>
</head>
<body>
    <div class="one"></div>
    <div class="two"></div>
    <img src="../images/arr.png" class="three">
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值