1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/lksai-monthlyCalendar

Клонировать/Скачать
index.html 1.7 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
liangkesai Отправлено 02.09.2021 09:29 45cfb2d
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>月日历</title>
</head>
<style>
#top {
position: relative;
height: 60px;
text-align: center;
line-height: 60px;
}
table {
background-color: #f7f7f7;
margin: auto;
}
#week td {
font-size: 20px;
font-weight: bold;
}
td {
height: 60px;
width: 60px;
text-align: center;
font-size: 20px;
}
#left, #right {
position: absolute;
width: 60px;
height: 60px;
color: cornflowerblue;
}
#left {
left: 0;
}
#right {
right: 0;
}
#left:hover, #right:hover {
background-color: rgba(30, 30, 30, 0.2);
}
h3{
text-align: center;
}
</style>
<body>
<div>
<h3>示例只做展示,没写样式,需要什么功能自己改改源码就能实现</h3>
<table>
<thead>
<tr>
<td colspan="7">
<div id="top">
<span id="left" class="prev_icon" onclick="preMonth()">&lt;</span>
<span style="font-size: 30px;" id="topInfo"></span>
<span id="right" class="next_icon" onclick="nextMonth()">&gt;</span>
</div>
</td>
</tr>
<tr id="week">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<script src="js/monthlyCalendar.js"></script>
<script type="text/javascript">
init();
</script>
</body>
</html>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/lksai-monthlyCalendar.git
git@api.gitlife.ru:oschina-mirror/lksai-monthlyCalendar.git
oschina-mirror
lksai-monthlyCalendar
lksai-monthlyCalendar
master