温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

HTML手风琴导航栏如何制作

发布时间:2022-03-25 11:20:51 来源:亿速云 阅读:164 作者:iii 栏目:web开发

这篇“HTML手风琴导航栏如何制作”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“HTML手风琴导航栏如何制作”文章吧。

手风琴导航栏制作代码

<!DOCTYPE html>

<html lang="en">

       <head>

              <meta charset="UTF-8">

              <title>手风琴类导航栏</title>

              <style type="text/css">

                     #indexText{

                            /*border: 1px red solid;*/

                            width: 1300px;

                            height: 400px;

                            position: absolute;

                            line-height: 40px;

                            font-size: 16px;

                            left: 50%;

                            top:50%;

                            margin-top: -200px;

                            transition: .5s linear;

                            -webkit-transition: .5s linear;

                            -moz-transition: .5s linear;

                            -ms-transition: .5s linear;

                            z-index: 100;

                            overflow: hidden;

                     }

                     #indexTextHeader{

                            width: 100%;

                            height: 10%;

                            font-size: 20px;

                            font-weight: 900;

                            text-align: center;

                     }

                     #indexTextWarp{

                            width: 80%;

                            height: 80%;

                            margin: 10px auto;

                            border: 3px #6f3a13 solid;

                            overflow: hidden;

                     }

                     .TextWarpHover{

                            height: 100%;

                            float: left;

                            width: 6.5%;

                            background-image: -webkit-linear-gradient(top,#e68239 0%,transparent  2%,transparent 98%,#e68239 100%);

                            background-size: 100% 100%;

                      transition:all 1s ease-in-out;

                      -moz-transition:all 1s ease-in-out;

                      -webkit-transition:all 1s ease-in-out;

                      -ms-transition:all 1s ease-in-out;

                      /*-o-transition:all 1s ease-in-out;*/

                     }

                     #indexTextWarp .TextWarpHover:hover{

                            width: 87%;

                     }

                     .indexTextWarp1_h{

                            width: 61px;

                            height: 100%;

                            background: #f07a24;

                            color: white;

                            border-right:2px #e87826 solid;

                            font-size: 50px;

                            line-height: 70px;

                            text-align: center;

                            float: left;

                            box-shadow: 2px 0px 10px gray,

                                                 2px 0px 20px black;

                     }

                     .indexTextWarp4{

                            line-height: 150px;

                            width: 80%;

                            height: 100%;

                            text-align: center;

                            float: right;

                            font-size: 50px;

                     }

              </style>

       </head>

       <body>

              <div id="indexText" style="margin-left: -650px;">

              <!-- 割一下 -->

              <div id="indexTextHeader">个人简介</div>

              <div id="indexTextWarp">

                     <div class="indexTextWarp1 TextWarpHover">

                            <div class="indexTextWarp1_h">基本介绍</div>

                            <div class="indexTextWarp1_t" style="padding-left: 30%;">

                                   姓名:XXX<br/>

                                   性别:X<br/>

                                   出生:XXXX-XX-XX<br/>

                                   血型:X;<br />

                            </div>

                     </div>

                     <!-- 割一下 -->

                     <div class="indexTextWarp2 TextWarpHover">

                            <div class="indexTextWarp1_h">学习经历</div>

                            <div class="indexTextWarp1_t" style="padding-left: 30%;">

                                   XXXXXXXXXXXXXXX<br/>

                                   XXXXXXXXXXXXXXX<br/>

                                   XXXXXXXXXXXXXXX<br/>

                                   XXXXXXXXXXXXXXX<br />

                            </div>

                     </div>

                     <!-- 割一下 -->

                     <div class="indexTextWarp3 TextWarpHover">

                            <div class="indexTextWarp1_h">工作经历</div>

                            <div class="indexTextWarp1_t" style="padding-left: 10%;width: 80%;">

                                   XXXXXXX/XXXXX/XXXXXX<br/>

                                   XXXXXX<br/>

                                   XXXXXXXXXXXXXXXXXXXXXXXXXXXX<br/>

                            </div>

                     </div>

                     <!-- 割一下 -->

                     <div class="indexTextWarp4">

                            我是毒鸡汤<br/>

                            真的是毒鸡汤<br />

                     </div>

              </div>

       </body>

</html>

以上就是关于“HTML手风琴导航栏如何制作”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI