├── img1.png ├── img2.png ├── img ├── header.jpg └── nav_line.png ├── README.md ├── .project ├── css └── layout.css └── index.html /img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SmallLee/Blog/HEAD/img1.png -------------------------------------------------------------------------------- /img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SmallLee/Blog/HEAD/img2.png -------------------------------------------------------------------------------- /img/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SmallLee/Blog/HEAD/img/header.jpg -------------------------------------------------------------------------------- /img/nav_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SmallLee/Blog/HEAD/img/nav_line.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Blog 2 | HTML+CSS制作的个人博客网页 3 | 4 | ##效果图一 5 | 6 | ![效果图一](https://github.com/SmallLee/Blog/blob/master/img1.png) 7 | 8 | ##效果图二 9 | 10 | ![效果图二](https://github.com/SmallLee/Blog/blob/master/img2.png) 11 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Blog 4 | Create By HBuilder 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | 19 | 1474359577652 20 | 21 | 10 22 | 23 | org.eclipse.ui.ide.orFilterMatcher 24 | 25 | 26 | org.eclipse.ui.ide.multiFilter 27 | 1.0-projectRelativePath-matches-false-false-bin 28 | 29 | 30 | org.eclipse.ui.ide.multiFilter 31 | 1.0-projectRelativePath-matches-false-false-setting 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /css/layout.css: -------------------------------------------------------------------------------- 1 | /*将所有带边界或者内边距的清零*/ 2 | *{ 3 | padding: 0px; 4 | margin: 0px; 5 | } 6 | /*设置整个页面的字体及文字颜色*/ 7 | body{ 8 | font-family: arial,宋体,serif; 9 | font-size: 12px; 10 | color: #534616; 11 | background: #F9F0CF url(../img/header.jpg) repeat-x left top; 12 | height: 180px; 13 | } 14 | #wrapper{ 15 | width: 960px; 16 | margin: 0 auto;/*将整个网页居中显示*/ 17 | } 18 | #header{ 19 | width: 100%; 20 | height: 250px; 21 | } 22 | #header #logo{ /*后代选择器*/ 23 | color: gray; 24 | font-size: 28px; 25 | padding-top: 10px; 26 | float: left; 27 | margin-left: 50px; 28 | } 29 | 30 | a{ /*将整个页面的超链接下划线去掉*/ 31 | text-decoration: none; 32 | } 33 | /*伪元素选择器,未访问过链接的颜色*/ 34 | a:link{ 35 | color: darkgray; 36 | } 37 | 38 | #logo a{ 39 | color: darkgray; 40 | } 41 | /*伪元素选择器,已访问过链接的颜色*/ 42 | a:visited{ 43 | color: green; 44 | } 45 | /*伪元素选择器,鼠标悬浮时链接的颜色*/ 46 | a:hover{ 47 | color: red; 48 | } 49 | #main{ 50 | width: 100%px; 51 | height: auto; 52 | margin-top: 20px; 53 | } 54 | #left{ 55 | width: 25%; 56 | height: 98%; 57 | float: left; 58 | } 59 | #right{ 60 | width: 72%; 61 | height: 98%; 62 | float: right; 63 | } 64 | #footer{ 65 | width: 100%; 66 | height: 90px; 67 | background: gray; 68 | margin-top: 8px; 69 | float: left; 70 | background: #D5E2CB; 71 | padding: 20px; 72 | text-align: center; 73 | } 74 | 75 | #search{ 76 | float: right; 77 | margin-top: 15px; 78 | } 79 | 80 | #search .stxt{ 81 | width: 180px; 82 | height: 20px; 83 | } 84 | #search .go{ 85 | width: 30px; 86 | height: 24px; 87 | } 88 | /*所有的ul不带指示器*/ 89 | ul{ 90 | list-style-type: none; 91 | } 92 | 93 | #nav ul li a{ 94 | float: left; 95 | margin-right: 28px; 96 | font-size: 24px; 97 | color: #D1C091; 98 | background: url(../img/nav_line.png) no-repeat right top; 99 | /*text-align: center;*/ 100 | width: 100px; 101 | } 102 | 103 | #nav{ 104 | width: 100%; 105 | height: 40px; 106 | float: left; 107 | margin-top: 150px; 108 | margin-left: 50px; 109 | } 110 | #nav ul li a:hover{ 111 | text-decoration: underline; 112 | } 113 | /*左侧侧边栏样式*/ 114 | .title{ 115 | width: 100%; 116 | height: 50px; 117 | background: #D5E2CB; 118 | line-height: 50px; 119 | text-indent: 20px;//左缩进 120 | } 121 | .content{ 122 | padding-left: 20px; 123 | padding-right: 20px; 124 | line-height: 20px; 125 | color: #787878; 126 | border: 1px solid #D6E6CC; 127 | padding-bottom: 20px; 128 | margin-bottom: 20px; 129 | } 130 | 131 | .content li{ 132 | line-height: 25px; 133 | border-bottom: dashed 1px #D1D1D1; 134 | } 135 | 136 | p{ 137 | margin: 10px; 138 | } 139 | #left .content,#right .content{ 140 | background: #F4FAF0; 141 | } 142 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 个人博客网站 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 34 | 35 |
36 |
37 | 38 |
39 |

Because Of You

40 |
41 |
42 | I will not make,the same mistake that 43 | you did,I will not let myself heart so misery! 44 |
45 | 46 |
47 |

Clubs

48 |
49 |
50 | 58 |
59 | 60 |
61 |

Clubs

62 |
63 |
64 | 72 |
73 | 74 |
75 |

Country

76 |
77 |
78 | 83 |
84 |
85 | 86 | 117 |
118 | 119 | 122 |
123 | 124 | --------------------------------------------------------------------------------