前些天为了学习页面布局,做了一个简易的百度首页。做百度首页的原因是因为它的布局比较简单,需要顾及的地方比较少,但是需要相关的知识点又基本上都能用上,对自己理解页面布局以及一些标签(如float和margin)的用法有很大的帮助。仿做一个网页之前需要分析该网页的布局,下图是百度首页。从上图可以看出,百度首页大概分为三个块:头部,中部,和底部。中部又可以分为LOGO和搜索框,地步可以分为百度二维码和底
转载 2023-11-22 20:37:43
68阅读
body{ background-color: #CCCCCC;}.content ul{ padding-left: 0;}.content ul li{ display: inline-block;}.content{ width: 1000px; margin: 0 auto;}.conten ...
转载 2021-10-27 13:30:00
158阅读
2评论
为什么要布局?网页布局,也就是如何安排网页的内容。一个好的网页布局能够使人眼前一亮,吸引流量。本篇文章中我们不讨论相关的设计理论,我们只对布局所用到的HTML知识进行学习。几种简单的布局方式网页主要分为三部分——头部、主体、页脚。头部:网页的头部主要包含网站和网页的名字以及LOGO,还会包含网站的导航栏。主体:网页的主体承载网页的主要内容。页脚:网页的页脚通常会包含网站的基本信息、版权信息、备案信
转载 2023-07-23 15:29:21
146阅读
快速的完成网站首页的基本布局
原创 2014-09-23 07:22:24
619阅读
index.css .banner { height: 500px; background-color: #f5f5f5; } .banner .wrapper { position: relative; height: 500px; background-color: pink; } /* 侧导航
原创 2022-07-10 00:04:38
59阅读
html
原创 2023-02-10 09:47:48
14阅读
html
原创 2023-02-10 09:41:43
43阅读
html
原创 2023-02-10 09:42:16
63阅读
html
原创 2023-02-10 09:42:31
60阅读
index.css /* index.css是用来美化首页的 */* { margin: 0; padding: 0; /* 內减模式 */ box-sizing: border-box;}li { list-style: n...
原创 2022-06-18 01:34:13
165阅读
commom.css /* 各个页面相同的样式表 : 头, 尾部 */ /* 版心 */ .wrapper { width: 1240px; margin: 0 auto; } /* 快捷
原创 2022-07-10 00:04:47
74阅读
html
原创 2023-02-10 09:45:26
64阅读
html
原创 2023-02-10 09:40:58
26阅读
index.css /* index.css是用来美化首页的 */ * { margin: 0; padding: 0; /* 內减模式 */ box-sizing: border-box; } li { list-style: none; } a { text-decoration: none;
原创 2022-06-26 00:03:16
108阅读
index.css .banner { height: 500px; background-color: #f5f5f5; } .banner .wrapper { position: relative; height: 500px; background-color: pink; } /* 侧导航
原创 2022-07-10 00:04:36
86阅读
commom.css <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content
原创 2022-07-10 00:04:53
100阅读
index.css /* 放index页面的样式表 */ /* banner */ .banner { height: 500px; background-color: #f5f5f5; } .banner .wrapper { position: relative; height: 500px;
原创 2022-07-10 00:05:15
148阅读
html
原创 2023-02-11 14:04:15
80阅读
text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-bo ...
翻译 2021-10-27 18:21:00
341阅读
2评论
index.css .banner { height: 500px; background-color: #f5f5f5; } .banner .wrapper { position: relative; height: 500px; background-color: pink; } /* 侧导航
原创 2022-07-10 00:05:07
92阅读
  • 1
  • 2
  • 3
  • 4
  • 5