简单的个人博客日历代码,时钟演示

本文介绍了如何使用HTML和JavaScript为个人博客创建一个简单易用的日历和动态时钟。通过这段代码,读者可以为自己的博客增添实用的日期显示功能,提升用户体验。
摘要由CSDN通过智能技术生成

这里写图片描述


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="Html日历插件,Html精美日历插件,Jquery多功能日历插件" />
<meta name="description" content="Html日历插件,多功能-彭亚欧个人博客代码演示中心" />
<title>Html日历插件</title>
<style type="text/css">
body {
    background-color: #efefef;
}
#CalendarMain {
    width: 300px;
    height: 300px;
    border: 1px solid #ccc;
    margin: 0 auto;
    margin-top: 100px;
}
#title {
    width: 100%;
    height: 30px;
    background-color: #b9121b;
}
.selectBtn {
    font-weight: 900;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    padding: 7px 10px 6px 10px;
}
.selectBtn:hover {
    background-color: #1d953f;
}
.selectYear {
    float: left;
    margin-left: 50px;
    position: absolute;
}
.selectMonth {
    float: left;
    margin-left: 120px;
    position: absolute;
}
.month {
    float: left;
    position: absolute;
}
.nextMonth {
    float: right;
}
.currentDay {
    float: right;
}
#context {
    background-color: #fff;
    width: 100%;
}
.week {
    width: 100%;
    height: 30px;
}
.week>h3 {
    float: left;
    color: #808080;
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: 5px;
    font-size: 16px;
}
.dayItem {
    float: left;
}
.lastItem {
    color: #d1c7b7 !important;
}
.item {
    color: #333;
    float: left;
    text-align: center;
    cursor: pointer;
    margin: 0;
    font-family: "微软雅黑";
    font-size: 13px;
}
.item:hover {
    color: #b9121b;
}
.currentItem>a {
    background-color: #b9121b;
    width: 25px;
    line-height: 25px;
    float: left;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    color: #fff;
}
#foots {
    width: 100%;
    height: 35px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    margin-top: -1px;
}
#footNow {
    float: left;
    margin: 6px 0 0 5px;
    color: #009ad6;
    font-family: "微软雅黑";
}
#Container {
    overflow: hidden;
    float: left;
}
#center {
    width: 100%;
    overflow: hi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值