CSS Code
01 | /* UI Object */ |
02 | .calendar{ overflow : hidden ; width : 194px ; border : 2px solid #999 ; font-family : '돋움' ,dotum; font-size : 12px ; line-height : 12px ; text-align : center } |
03 | .calendar a{ text-decoration : none !important } |
04 | .calendar img{ border : 0 } |
05 | .calendar a.btn_cal{ display :inline- block ; width : 31px ; padding-right : 2px ; background : url (http:// static .naver.com/groupware/ 2010 /bg_btn_cal.gif) no-repeat 100% 0 ; font-size : 11px ; color : #888 ; letter-spacing : -1px ; line-height : 19px ; text-decoration : none } |
06 | .calendar a.btn_cal:hover{ color : #000 } |
07 | .calendar a.btn_cal span{ display : block ; padding : 1px 0 0 2px ; background : url (http:// static .naver.com/groupware/ 2010 /bg_btn_cal.gif) no-repeat } |
08 | .calendar .calendar_type{ overflow : hidden ; height : 27px ; background : #f2f2f2 } |
09 | .calendar .calendar_type .note{ float : left ; padding : 7px 0 0 5px ; font-size : 11px ; line-height : 13px ; letter-spacing : -1px } |
10 | .calendar .calendar_type .note span{ display :inline- block ; overflow : hidden ; width : 65px ; white-space : nowrap ;text- overflow :ellipsis} |
11 | .calendar .calendar_type .note img{ margin-top : 1px ; vertical-align : top } |
12 | .calendar .calendar_type .btns{ float : right ; padding : 3px 5px 0 3px } |
13 | .calendar .calendar_type .btns a{ margin-left : -3px } |
14 | .calendar .calendar_type .selected{ color : #d00 !important } |
15 | .calendar .calendar_period{ clear : both ; margin : 11px 0 23px } |
16 | .calendar .calendar_period a{ display :inline- block ; margin : -1px -1px 0 ; padding : 1px ; vertical-align : middle } |
17 | .calendar .calendar_period a img{ vertical-align : top } |
18 | .calendar .calendar_period strong{ display :inline- block ; width : 83px ; font-family : verdana ; font-size : 13px ; color : #333 ; line-height : 15px ; text-align : center } |
19 | .calendar table{ width : 168px ; margin : 0 auto 11px ; border : 0 } |
20 | .calendar table caption ,.calendar table thead{ display : none } |
21 | .calendar table td{ padding : 0 ; border : 0 ; background : #fff ; border : 0 ; border-bottom : 3px solid #fff ; font-family : verdana , tahoma ; font-size : 10px ; line-height : 12px } |
22 | .calendar table td.selectable a{ background : #fffcb2 } |
23 | .calendar table td.selected a{ background : #e5f2ff } |
24 | .calendar table td.today a{ background : #7f7f7f ; color : #fff } |
25 | .calendar table td a{ display : block ; width : 24px ; height : 13px ; color : #000 ; text-align : center ; letter-spacing : -1px } |
26 | .calendar table td.sun a{ color : #f00 } |
27 | .calendar table td.sat a{ color : #00f } |
28 | .calendar .calendar_input_period{ margin : 0 5px 0 ; padding : 4px 0 ; border-top : 1px solid #e5e5e5 ; color : #666 } |
29 | .calendar .calendar_input_period .tilde{ margin : 0 -3px ; font-family : tahoma ; font-size : 11px ; color : #aaa } |
30 | .calendar .calendar_input_period input.date{ width : 62px ; height : 14px ; margin-top : 1px ;* margin : 0 0 -1px ; padding : 2px 0 0 4px ; border : 1px solid #ccc ; font-family : tahoma ; font-size : 11px ; line-height : 13px ; vertical-align : top } |
31 | .calendar .calendar_input_period a.btn_cal{ color : #454545 } |
32 | /* //UI Object */ |
HTML Code
001 | <!-- UI Object --> |
002 | < div class = "calendar" > |
003 | |
004 | <!-- part --> |
005 | < div class = "calendar_type" > |
006 | < div class = "note" > |
007 | < img src = "https://i-blog.csdnimg.cn/blog_migrate/10ae54cdc8a5d5bb67b3eb3969031f2e.gif" width = "10" height = "10" alt = "하늘색" > |
008 | < span title = "선택한 기간이 하늘색으로 나옴" >선택한 기간이 하늘색으로 나옴</ span > |
009 | </ div > |
010 | < div class = "btns" > |
011 | < a href = "#" class = "btn_cal selected" >< span >일간</ span ></ a > |
012 | < a href = "#" class = "btn_cal" >< span >주간</ span ></ a > |
013 | < a href = "#" class = "btn_cal" >< span >월간</ span ></ a > |
014 | </ div > |
015 | </ div > |
016 | <!-- //part --> |
017 |
018 | <!-- part --> |
019 | < div class = "calendar_period" > |
020 | < a href = "#" >< img src = "https://i-blog.csdnimg.cn/blog_migrate/f2308507dbcca03ea867c14484362414.gif" width = "17" height = "13" alt = "이전해" ></ a > |
021 | < a href = "#" >< img src = "https://i-blog.csdnimg.cn/blog_migrate/2bec2a4848d8d32d9f9642caec53471b.gif" width = "12" height = "13" alt = "이전달" ></ a > |
022 | < strong >2010. 12</ strong > |
023 | < a href = "#" >< img src = "https://i-blog.csdnimg.cn/blog_migrate/19574d013e53f07725a637abb2b46a7e.gif" width = "12" height = "13" alt = "다음달" ></ a > |
024 | < a href = "#" >< img src = "https://i-blog.csdnimg.cn/blog_migrate/3bda4190eee39b4c71524e5c7c8ea6f0.gif" width = "17" height = "13" alt = "다음해" ></ a > |
025 | </ div > |
026 | |
027 | < table cellspacing = "0" border = "1" > |
028 | < caption >달력</ caption > |
029 | < thead > |
030 | < tr > |
031 | < th scope = "col" >일</ th > |
032 | < th scope = "col" >월</ th > |
033 | < th scope = "col" >화</ th > |
034 | < th scope = "col" >수</ th > |
035 | < th scope = "col" >목</ th > |
036 | < th scope = "col" >금</ th > |
037 | < th scope = "col" >토</ th > |
038 | </ tr > |
039 | </ thead > |
040 |
041 | < tbody > |
042 | < tr > |
043 | < td class = "sun" > </ td > |
044 | < td > </ td > |
045 | < td class = "selected today" >< a href = "#" >1</ a ></ td > |
046 | < td class = "selected" >< a href = "#" >2</ a ></ td > |
047 | < td class = "selected" >< a href = "#" >3</ a ></ td > |
048 | < td class = "selected" >< a href = "#" >4</ a ></ td > |
049 | < td class = "sat selected" >< a href = "#" >5</ a ></ td > |
050 | </ tr > |
051 | < tr > |
052 | < td class = "sun selected" >< a href = "#" >6</ a ></ td > |
053 | < td class = "selectable" >< a href = "#" >7</ a ></ td > |
054 | < td >< a href = "#" >8</ a ></ td > |
055 | < td >< a href = "#" >9</ a ></ td > |
056 | < td >< a href = "#" >10</ a ></ td > |
057 | < td >< a href = "#" >11</ a ></ td > |
058 | < td class = "sat" >< a href = "#" >12</ a ></ td > |
059 | </ tr > |
060 | |
061 | < tr > |
062 | < td class = "sun" >< a href = "#" >13</ a ></ td > |
063 | < td >< a href = "#" >14</ a ></ td > |
064 | < td >< a href = "#" >15</ a ></ td > |
065 | < td >< a href = "#" >16</ a ></ td > |
066 | < td >< a href = "#" >17</ a ></ td > |
067 | < td >< a href = "#" >18</ a ></ td > |
068 | < td class = "sat" >< a href = "#" >19</ a ></ td > |
069 | </ tr > |
070 | |
071 | < tr > |
072 | < td class = "sun" >< a href = "#" >20</ a ></ td > |
073 | < td >< a href = "#" >21</ a ></ td > |
074 | < td >< a href = "#" >22</ a ></ td > |
075 | < td >< a href = "#" >23</ a ></ td > |
076 | < td >< a href = "#" >24</ a ></ td > |
077 | < td >< a href = "#" >25</ a ></ td > |
078 | < td class = "sat" >< a href = "#" >26</ a ></ td > |
079 | </ tr > |
080 | |
081 | < tr > |
082 | < td class = "sun" >< a href = "#" >27</ a ></ td > |
083 | < td >< a href = "#" >28</ a ></ td > |
084 | < td >< a href = "#" >29</ a ></ td > |
085 | < td >< a href = "#" >30</ a ></ td > |
086 | < td >< a href = "#" >31</ a ></ td > |
087 | < td > </ td > |
088 | < td class = "sat" > </ td > |
089 | </ tr > |
090 | </ tbody > |
091 | </ table > |
092 | <!-- //part --> |
093 |
094 | <!-- part --> |
095 | < div class = "calendar_input_period" > |
096 | < input type = "text" name = "period1" class = "date" title = "시작일 입력" > |
097 | < span class = "tilde" >~</ span > |
098 | < input type = "text" name = "period2" class = "date" title = "종료일 입력" > |
099 | < a href = "#" class = "btn_cal" >< span >< strong >확인</ strong ></ span ></ a > |
100 | </ div > |
101 | <!-- //part --> |
102 | |
103 | </ div > |
104 | <!-- //UI Object --> |