css-html

效果:
在这里插入图片描述

代码:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                
                <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
                <meta content="always" name="referrer">
                <meta name="theme-color" content="#2932e1">
                <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico" type="image/x-icon">
                <title>测试</title>
                <style data-vue-ssr-id="22cfed39:0">
html,
body {
  height: 100%;
  color: #222;
}
* {
  margin: 0;
  padding: 0;
}


.bg-wrapper {
  position: absolute;
  z-index: -1;
  overflow: hidden;
  width: 100%;
  height: 1080px;
}
.bg-wrapper img {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  height: 100%;
  margin-left: -960px;
}

.navi-top-wrapper {
  height: 48px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}


</style>



</head>
            <body>
                <div>
                    <div class="bg-wrapper">
                      <img src="./hot-bg-2.png">
                    </div>
                    <div class="navi-top-wrapper">
                      <a class="navi-item_2z3vU" href="http://www.baidu.com/" target="_blank">首页</a>
                    </div>
                </div>
      
            </body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我先来一碗

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值