##CSS和JS的基础常识

<!--引入CSS文件-->

<link rel="stylesheet" type="text/css" href="css/index.css"/>

*{
    padding:0;<!--填充:0;--> 

    margin:0;<!-- 边距:0;-->

}
#app{
    position:absolute;
    top:50%;
    left:50%;
    margin:-300px 0 0 -200px;
    width:400px;
    height: 600px;
    background:rgba(0,0,0,0.1);
    box-shadow:10px 10px 20px rgba(0,0,0,0.5);<

}

./*

位置:绝对;
最高:50%;
左:50%;
边距:-300像素0 0-200像素;
宽度:400像素;
高度:600像素;
背景:rgba(0,0,0,0.1);
箱形阴影:10px 10px 20px rgba(0,0,0,0.5);*/

.head{
    top:0;
    height:50px;
    line-height: 50px;
    background:#31C27C;
    color:#fff;
    text-align:center;
    font-size:1.2em;
    letter-spacing:5px

/*

头部
top:0;
高度:50px
行高:50px
背景:# 31C27C
颜色:#fff。
文本对齐:居中;
字体大小:1.2em
字母间距:5px
}

*/.

logo{
    position: absolute;
    top:12px;
    left:80px;
    display: inline-block;
    width:27px;
    height: 27px;
    background: url(../img/logo.png) no-repeat;
    background-size: 156px 27px;
    animation:cycle 3s infinite linear;

/*

位置:绝对;
顶部:12px
左侧:80px
显示:内嵌块;
宽度:27px
高度:27px
背景:url(../img/logo.png)不重复;
背景尺寸:156像素27像素;
动画:3s循环无限线性;

*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值