HTML手风琴导航栏如何制作

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

成都创新互联公司是专业的灵石网站建设公司,灵石接单;提供网站设计制作、网站建设,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行灵石网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

手风琴导航栏制作代码

<!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手风琴导航栏如何制作”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注创新互联行业资讯频道。

当前名称:HTML手风琴导航栏如何制作
当前链接:https://www.cdcxhl.com/article44/iepgee.html

成都网站建设公司_创新互联,为您提供小程序开发Google网站设计域名注册网站导航电子商务

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都网站建设