html css 7小时,index7.html

测试界面7

body {

/* 去除间隙 */

margin: 0;

}

ul {

/* 去除间隙 */

margin: 0;

/* 去除标点 */

list-style-type: none;

}

ul li {

float: left;

/* 增加元素内边距,遵循上/右/下/左原则 */

padding: 0 8px 0 8px;

color: #999;

/* 当鼠标触控到区域时自动变化为手指图标 */

cursor: pointer;

}

/* 当鼠标放置在该元素上边时使用如下设定的样式 */

ul li:hover {

color: #e33333;

}

.pg-head {

height: 44px;

background-color: #e3e4e5;

/* 让标签内的元素按照这个高度进行居中 */

line-height: 44px;

}

.w {

width: 980px;

background-color: #7FFFD4;

/* 让布局自动居中 */

margin: 0 auto;

}

.pg-body {

/* div标签设置边框后,会包裹整行,所以需要将其设置为inline-bloack标签才能包裹内容 */

border: 1px solid gray;

/* 设置为inline-block后,子标签元素之间会存在默认的三像素间隙,需要在子元素里边设置为漂浮 */

display: inline-block;

}

.inp {

border: 0;

border-left: 1px solid gray;

border-right: 1px solid gray;

height: 25px;

width: 40px;

/* 由于父元素标签采用的display是inline-block,则会存在默认的三像素空隙,因此设置为向左漂浮即可去除该三像素 */

float: left;

padding-left: 5px;

}

.sp {

display: inline-block;

height: 25px;

width: 25px;

text-align: center;

line-height: 25px;

/* 由于父元素标签采用的display是inline-block,则会存在默认的三像素空隙,因此设置为向左漂浮即可去除该三像素 */

float: left;

}

.left {

float: left;

}

.clearfx::after {

content: '.';

clear: both;

display: block;

visibility: hidden;

height: 0;

}

  • 标题1
  • 标题2
  • 标题3
  • 标题4

-

+

1

2

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
!DOCTYPE html> <html 85.3333px;"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta http-equiv="Cache-Control" content="no-transform"> <meta name="applicable-device" content="mobile"> <meta http-equiv="Cache-Control" content="no-siteapp"> <title>【元旦倒计时】2020新年倒计时_距离2020年还有多少天</title> <style> .timebox2{width:640px;background-color:#FCF3E2;padding: 1rem 0;background: url(images/ks_bcg2.png) center center no-repeat;background-size: 100% 100%;} .timebox2 div,timebox2 span,timebox2 div span{color: #333 !important;} .timebox2 .timecounter span{color: #333 !important;} .timetext{width: 100%;text-align: center;} .timetexttitle{font-size:0.3rem;margin-bottom: 10px;color: #fff;} .timetextintro{font-size: 0.22rem;margin-bottom: 10px;color: #fff;padding: 0 1.52rem;box-sizing: border-box;} .timecounter{font-size: 0.6rem;} .txt{padding: 0 0.2rem;box-sizing:border-box;} .clearbg5{display: block;clear: both;width: 100%;height: 0.16rem;overflow: hidden;background-color: #eee;} .txt p{line-height: 30px;margin-top: 0.2rem;} .txt p img{width: 100%;} .timecounter span{color: #fff;} </style> <body> 2020年元旦倒计时 元旦时间:2020年1月1日 农历腊月初七 星期三 目前距离2020年元旦还有 127 天 10 时 24 分 8 秒 [removed] function getRTime() { var EndTime = new Date("2020/01/01 00:00:00"); //截止时间 var NowTime = new Date(); var t = EndTime.getTime() - NowTime.getTime(); var d = Math.floor(t / 1000 / 60 / 60 / 24); var h = Math.floor(t / 1000 / 60 / 60 % 24); var m = Math.floor(t / 1000 / 60 % 60); var s = Math.floor(t / 1000 % 60); document.getElementById("t_d")[removed] = d + " 天"; document.getElementById("t_h")[removed] = h + " 时"; document.getElementById("t_m")[removed] = m + " 分"; document.getElementById("t_s")[removed] = s + " 秒"; } setInterval(getRTime, 1000); [removed] </body> </html>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值