日期:2014-05-16  浏览次数:20404 次

li里面嵌套div的问题,大家帮忙看看。
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>自己写js日历</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul, li {
            list-style: none;
        }

        #calendar {
            width: 504px;
            border: 1px solid #dadada;
            border-radius: 3px;
        }

        .c_header {
            width: 100%;
            height: 60px;
            background-color: #83d8e7;
            background-image: linear-gradient(to bottom, #abe5ef, #83d8e7);
            position: relative;
            
        }

            .c_header h1 {
                font-size: 16px;
                height: 30px;
                line-height: 30px;
                text-align: center;
                color: #ffffff;
            }

            .c_header span {
                width: 20px;
                height: 20px;
                line-height: 20px;
                color: #ffffff;
                text-align: center;
                position: absolute;
                top: 5px;
                border-radius: 50%;
  &nb