zoukankan      html  css  js  c++  java
  • 过渡转换

    当鼠标指示外框时显示隐藏内容

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style>
                *{margin: 0;padding: 0;}
                ul,ol,li{list-style: none;}
                a{text-decoration: none;color: black;}
                
                .box{width: 300px;height: 30px;line-height: 30PX;}
                .F1,.F2,.F3{width: 300px;height: 30px; border-bottom: 1px solid blue;
                background-color: lightskyblue;}
                .T1,.T2,.T3{width: 300px;background-color:lightgray;overflow:hidden;height: 0px;transition:height 1s ease;}
                .T1,.T2,.T3{}
                .M1:hover .T1{height:100px;}
                .M2:hover .T2{height: 160px;}
                .M3:hover .T3{height:230px;}    
            </style>
        </head>
        <body>
            
            <div class="box">
                <ul class="M1">
                    <li class="F1">First Menu</li>
                    <li class="T1">Well, the way they make shows is, they make one show.
    That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that ne show they decide if they're going to make more shows.
                    </li>
                </ul>
                
                <ul class="M2">
                    <li class="F2">Second Menu</li> 
                    <li class="T2">Like you, I used to think the world was this great place where everybody livedby the same standards I did,then sone kid with a nail showed ne I was living in his world, a world where chaos rules not order, a world
    where righteousness is not rewarded. That's Cesar's world, and if you're not willing to play by his rules, then you're gonna have to pay the price.
                    </li>
                </ul>
                
                <ul class="M3">
                    <li class="F3">Third Menu</li> 
                    <li class="T3">You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know hat seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We
    said we'd say it was the snow that killed the other two,but it wasn't. Nature is lethal but it doesn't hold a candle to man.
                    </li>
                </ul>
            
            </div>
            
        </body>
    </html>
  • 相关阅读:
    jQuery插件开发的模式和结构
    jQuery插件开发详细教程
    一个JavaScript Function Outliner插件 第三个版本 让你的JavaScript代码也支持折叠
    web开发过程中经常用到的一些公共方法及操作
    C#操作注册表
    EventBus使用详解(一)——初步使用EventBus
    android xml布局文件中tools:layout的作用
    调用android系统相机拍照并保存
    Android组件间通信库EventBus学习
    网络通信框架Volley使用详细说明
  • 原文地址:https://www.cnblogs.com/LLiRo/p/12604633.html
Copyright © 2011-2022 走看看