/*CSS3翻页带年月时钟的样式代码*/ .flip-clock-wrapper { display: inline-block; position: relative; padding: 10px; height: 45px; background: #fff; font-family: 'Open Sans', sans-serif; border-radius: 5px; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5); } .flip-clock-wrapper:before, .flip-clock-wrapper:after { content: ""; display: table; } .flip-clock-wrapper:after { clear: both; } .flip-clock-dot { display: inline-block; width: 4px; height: 4px; margin: 0 2px; background: #000; border-radius: 4px; } .flip-clock-countdown { float: right; width: 48%; } .flip-clock-countdown .flip-clock-label { clear: both; font-size: 14px; text-transform: uppercase; color: #777; text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8); } .flip-clock-countdown .flip-clock-amount { color: #333; font-size: 52.5px; text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8); position: relative; display: inline-block; width: 60px; height: 60px; line-height: 60px; text-align: center; margin: 0 5px; background: #fafafa; border-radius: 50%; box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1), inset 0px -1px 1px rgba(0, 0, 0, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5); transform: translateZ(0px); } .flip-clock-divider { float: left; height: 100%; display: flex; align-items: center; color: #777; font-size: 28px; text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8); } .fliip-clock-divider:first-child { margin-right: 5px; } .flip-clock-divider:last-child { margin-left: 5px; }
通过上述CSS3翻页带年月时钟的样式代码,大家可以实现一个非常漂亮的时钟效果。在实际应用中,大家可以根据自己的需求进行调整,以实现更加满意的效果。