WEB前端开发经验总结之实战篇(2)
作者:海啸 来源:海啸的地盘 发布时间:2008-06-12 12:49:00
首先是页面最上面的子导航,它就是3个(靠有对齐的)链接。所以没有什么大的疑问,XHTML代码如下:
<!--不清楚那些韩文是什么意思,我就用了我们常用的导航了-->
<div><a href="#1">Cart</a> | <a href="#1">Account</a> | <a href="#1">GuestBook</a> | <a href="#1">FAQs</a></div>
下面接着是我们的LOGO和主导航(2008 LOGO设计趋势),LOGO这部分我还是准备采取前面文章所采用的那个方法,至于导航菜单,用UL标签,我想大家一定没有什么异议,所以我们这里的XHTML代码如下:
<div>
<h1><a href="#1" title="FrameDesign">Frame Design</a></h1>
<ul>
<li><a href="#1">ARTICLES</a></li>
<li><a href="#1">TOPICS</a></li>
<li><a href="#1">ABOUT</a></li>
<li><a href="#1">CONTACT</a></li>
<li><a href="#1">FEED</a></li>
</ul>
</div>
下面的Banner就更简单了,一张大图片,所以毫无疑问我们使用<img />标签,代码如下:
<div><img src="img/banner.gif" alt="Nature is the best physician" /></div>
下面就是我们比较复杂的部分了,不过其实我们分析后页会发现,其实也不是我们想象中的那么复杂。先来看左边这部分,标题(h2)--标题banner(img)--新闻列表(ul)--标题(h2)--新闻列表(ul),所以这里的代码就应该是这样的。(网页广告 banner 设计图文手册)
<div>
<h2>What's News a person of artistic temperament[nature]</h2>
<div><img src="img/tlt-banner.gif" alt="What's News" /></a>
<ul>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
</ul>
<h2>Green event a person of artistic temperament</h2>
<ul>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
</ul>
</div>
中间的部分,其实结构也很简单,一段文字说明,然后是一张图片,文字说明我们用p标签,图片就用img标签了,那就不多分析了,只是要说明的是,我们看到,第一行的文字是要加粗的,代码如下:
<div>
<p>
<strong>a person of an artistic turnof mind;</strong><br />
a person of artistic temperament[nature] <br />
a person of an artistic turn
</p>
<div><img src="img/pic-1.gif" alt="picture-1" /></div>
<p>
<strong>a person of an artistic turnof mind;</strong><br />
a person of artistic temperament[nature] <br />
a person of an artistic turn
</p>
<div><img src="img/pic-2.gif" alt="picture-2" /></div>
</div>
接着是我们的左边部分。标题图片--这里采用我对LOGO的做法就再合适不过了,看上去是图片,而其实我们用的是<h2>标签,说明这里是标题。形式上是图片,结构(实际)上是标题文字,一举两得,我想现在大家看出这么处理的好处了吧?接着是说明的文字p标签,下面是两个banner图片,使用img标签。接着又是段说明文字(p标签了)。OK,这部分的代码如下:
<div>
<h2>Couer Story</h2>
<p>
a person of an artistic turnof mind; a person of artistic temperament[nature] a person of an artistic turn
</p>
<div><img src="img/Cooperation.gif" alt="Cooperation" /></div>
<div><img src="img/ProjectWORK.gif" alt="Project WORK" /></div>
<p>
a person of an artistic turnof mind;<br />
a person of artistic temperament[nature]
</p>
</div>
OK,现在我们就可以把这3段代码合并起来,我们就得到了这块主体部分的代码了:
<div>
<div><!--Left Part-->
<h2>What's News a person of artistic temperament[nature]</h2>
<div><img src="img/tlt-banner.gif" alt="What's News" /></a>
<ul>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
</ul>
<h2>Green event a person of artistic temperament</h2>
<ul>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
<li><a href="#1">A person of artistic temperament[nature]</a></li>
</ul>
</div>
<div><!--Center Part-->
<p>
<strong>a person of an artistic turnof mind;</strong><br />
a person of artistic temperament[nature] <br />
a person of an artistic turn
</p>
<div><img src="img/pic-1.gif" alt="picture-1" /></div>
<p>
<strong>a person of an artistic turnof mind;</strong><br />
a person of artistic temperament[nature] <br />
a person of an artistic turn
</p>
<div><img src="img/pic-2.gif" alt="picture-2" /></div>
</div>
<div><!--Right Part-->
<h2>Couer Story</h2>
<p>
a person of an artistic turnof mind; a person of artistic temperament[nature] a person of an artistic turn
</p>
<div><img src="img/Cooperation.gif" alt="Cooperation" /></div>
<div><img src="img/ProjectWORK.gif" alt="Project WORK" /></div>
<p>
a person of an artistic turnof mind;<br />
a person of artistic temperament[nature]
</p>
</div>
</div>
呵呵,稍微花点信息去分析,其实也不是那么难的,对吗?下面就是是我们的底部的导航--都是链接,用A标签没有问题,以及版权信息。总的来说,这部分都算是说明的文字,所以我们就用p标签,但是我们发现它们有属于不动的两个部分,而这两个部分有在同一行显示,所以我们这里就要用到一个很常用的行内元素--span标签了。


猜你喜欢
- Image控件又称图像控件,主要用来显示用户的图片或图像信息。一、属性表1 Image控件常用属性及说明属性说明ID控件IDImageAli
- 并行发送sh命令pbsh.py#!/usr/bin/python# -*- coding: UTF-8 -*-import paramiko
- vue使用this.$confirm首先在element-ui中的el-table下的el-table-column中引入插槽(相当于占位符
- import timedef block(file,size=65536): while True:&n
- 这个需求是产品提的,一开始只是设置了 <input style="padding-top: 3px;" type=
- 在django1.9之前,数据库同步只需要一条命令:python manage.py syncdb在djang1.9以后,数据库同步执行指令
- 目录背景什么是协程?什么是 gevent?协程的例子Q&AQ:gevent 无法捕获的耗时A:猴子补丁实践异步 requests 请
- python的pickle模块实现了基本的数据序列和反序列化。通过pickle模块的序列化操作我们能够将程序中运行的对象信息保存到文件中去,
- 很多朋友使用Dreamweaver一段时间后,开始热衷于寻找各式各样的插件,追求各种各样的特效,而对于Dreamweaver中的基本功能反而
- 130 :文件格式不正确。(还不是很清楚错误的状况) 145 :文件无法打开。 1005:创建表
- 什么是TokenToken字面意思是令牌,功能跟Session类似,也是用于验证用户信息的,Token是服务端生成的一串字符串,当客户端发送
- Sql Server的存储过程是一个被命名的存储在服务器上的Transacation-Sql语句集合,是封装重复性工作的一种方法,它支持用户
- Dim iSet conn=Server.CreateObject("ADODB.Connecti
- //创建组件 function createobj() { if (window.ActiveXObject) { return(new A
- 小编想把用python将列表[1,1,1,1,1,1,1,1,1,1] 和 列表 [2,2,2,2,2,2,2,2,2,2]对应相加成[3,
- 分支结构的应用场景迄今为止,我们写的Python代码都是一条一条语句顺序执行,这种结构的代码我们称之为顺序结构。然而仅有顺序结构并不能解决所
- 进入python的安装目录, 查看python解释器进入bin目录 # ls python(看一下是否有python解释器版本) # pwd
- /************************************************************ * Code
- 脚本之家下载地址:https://www.jb51.net/softs/79861.html官网下载地址:http://www.micros
- 几个月来好像就现在暂时无需求,稍微轻松一下,然后在Q群中发现有人提问,怎么用CSS实现数学公式“四又二分之一”。对于这个公式个人