day09

A:今天学到的内容

一、动画(animation)

<style>
        .box{
           width: 100px;
            height: 100px;
            background-color: red;
            animation: mf 5s infinite;
            transition: all 5s;
        }
        @keyframes mf {
            from{
                width: 100px;
                height: 100px;
                background-color: pink;
                transform: rotate(360deg);
            }
            to{
                width: 500px;
                height: 500px;
                background-color: #ffdb3d;
            }
        }
    </style>

二、搜索框

input type="submit"给它边框不会影响其高度

<form>
    <input class="search-text" type="text"/>
    <button class="search-btn" type="submit"><i  class=" icon-sousuo iconfont"></i></button>
</form>
<style>
        *{margin:0;padding:0}
        .icon-sousuo {
            font-size: 24px;
        }
        /*
        input type="submit"给它边框不会影响其高度
        */
        .search-btn{
            position: absolute;
            right: 0;
            top: 0;
            z-index: 2;
            width: 52px;
            height: 52px;
            border: 1px solid #e0e0e0;
            font-size: 24px;
            line-height: 24px;
            background: #fff;
            color: #616161;
            outline: 0;
        }
        form{
            margin: 50px;
            height:54px;
            position: relative;
            width:272px;
        }
        .search-text{
            outline: none;
            position: absolute;
            top: 0;
            right: 49px;
            padding:0 10px;
            width: 223px;
            height: 50px;
            border: 1px solid #e0e0e0;
            font-size: 14px;
        }
</style>

B:学会了什么

一、动画(animation)
二、搜索框
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • A、今天学到了什么 1、动画animation//定义:@keyframes (//关键帧) 例子 //CSS 例...
    向钱看丷向厚赚阅读 1,547评论 0 0
  • A.今天学了什么 1配置webstorm的安装环境 2.sass的语法 3.版本控制 动画animation B....
    shinjia阅读 1,046评论 0 0
  • A今天学了什么 1.animation 动画 2.使用动画animation B我掌握好的地方 1.animat...
    执念念不直阅读 1,319评论 0 0
  • 动画animation//定义:@keyframes (//关键帧) 例子: //CSS 例子: animatio...
    陈梦晴阅读 2,593评论 0 0
  • A我今天学了什么 动画animation//定义:@keyframes (//关键帧) animation 动画片...
    孔子曰_f425阅读 1,040评论 0 0