将日历插入html文件

将日历插入html文件,html,css,calendar,Html,Css,Calendar,我想在html中插入一个日历框 我在检查了精确的日历框后发现了这个代码 span.calSel { display: block; float: left; width: 40px; height: 32px; background: #3279c3 url(../images/calendar-icon.jpg) no-repeat center center scroll; font: 0/0 a; color: transparen

我想在html中插入一个日历框

我在检查了精确的日历框后发现了这个代码

span.calSel {
    display: block;
    float: left;
    width: 40px;
    height: 32px;
    background: #3279c3 url(../images/calendar-icon.jpg) no-repeat center center scroll;
    font: 0/0 a;
    color: transparent;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}
但据我所知,这只是插入了这个图像:

这不是单击该图像并弹出日历的功能,您可以在日历中选择日期,并且该日期将自动填入日期部分


你知道我该怎么做吗?

我建议使用这样一个库,它非常容易使用,并且添加了你想要的功能。你会在互联网上找到很多例子。我会举一个bootstrap的例子。这里有一个带说明的链接:希望这个链接能帮助你