收藏 分享(赏)

静态页面写法.doc

上传人:wspkg9802 文档编号:7517288 上传时间:2019-05-20 格式:DOC 页数:23 大小:66KB
下载 相关 举报
静态页面写法.doc_第1页
第1页 / 共23页
静态页面写法.doc_第2页
第2页 / 共23页
静态页面写法.doc_第3页
第3页 / 共23页
静态页面写法.doc_第4页
第4页 / 共23页
静态页面写法.doc_第5页
第5页 / 共23页
点击查看更多>>
资源描述

1、美工:做成展示效果(psd)前端:做成静态页面,div+css+js后台:写程序功能,套到页面里, ftp 上传常规:在把他上面的 一些要编程的 连接 或 表格 换成 linkbutton | GridView | DataList | Repeater+ CSS然后在浏览器中查看效果,做一些相应的调整使页面效果和美工设计出来的静态页面的效果查不多就行了.Ps 切片 - dw 排版实现链接跳转等功能(div+css)- 将 html给.Net 程序员。现在大家都重视网络方面的宣传,大部分的公司企业都有自己的网站。但是现在大家的要求已经不在于有还是没有了,而是在于其中的效果,是做的怎么样。其一,

2、对网站版面界面的要求,能给人强烈的视觉冲击感。其二,对代码的优化,已经不在基于 table,而是 DIV+CSS。今天济南网站建设给大家讲解,如何把psd 美工图制作为 div+css 切图 html 静态页面 。首先看一下效果吧,下面的图片就是效果图,切割出来后,可能头部和底部会宽点.新建文件夹开始时,在您的计算机中创建一个文件夹。我把它命名为zmool。再在文件夹中创建新文件夹 images,放网站的所有图像。接下来打开代码编辑器(Dreamweaver) ,并在根目录下创建一个 HTML 文件名为 index.html,这是我们的主页模板。现在创建一个新的 CSS 文件,并将其命名为st

3、yle.css 文件。如下图:打开 index.html 文件。在 head 标签顶部,添加链接到您的样式表(style.css) 。你可以使用下面的代码。头部的代码如下面:Modern Design Studio建立 HTML 结构现在,我们将设置 HTML 文件结构。设置 3 个部分(标题,内容,页脚)像下面一样:Untitled Document切割背景我们的 PSD 文件包含了很多纹理效果,我们要把这些全部切出来,然后,用代码添加到网页上面,使 div 页面效果和设计的效果达到一致。现在在 photoshop 里面打开原先设计好的, 隐藏所以的图层,除背景层外.现在采取的切片工具,选择

4、背景,保存网页 web 格式按(ALT +shift+Ctrl + S) 。然后保存的图像文件夹文件名为background.jpg。设置背景样式打开 style.css 文件,设置基本样式,还有背景样以及主体部分的宽度,如下代码:* margin: 0px;padding: 0px;bodybackground:url(images/background.jpg);#containermargin: auto;width: 960px;切割头部返回 photoshop,隐藏所以图层,除头部背景外,并用同样的方法,把头部背景图片切割保存为 web 格式,保存文件名为 head.jpg。编辑头部

5、背景代码在 style.css 文件里编辑如下代码:#headerbackground:url(images/header.jpg);height:124px;切割头部 logo在这时,切割 logo 层,隐藏所有图层,包括背景层,如上同样方法切割 logo 层保存为 logo.png,注意:保存为 png格式图片添加在页面添加 logo现在返回到 html 中,在#header #container 内,添加下面的代码.现在, 下面切换到 style.css 文件,编写#logo 样式.#logomargin-top:20px;border:none;编辑导航代码下面是页面里的代码,头部 h

6、eader 包括 logo 和导航两个部分.HomeAboutWorkBlogContact导航样式如下:现在,添加 css 表里的导航样式,ul、li 和链接 a 的样式:#header licolor:#959595;list-style:none;float:left;margin-right:20px;font-family:“Myriad Pro“,arial;font-weight:bold;font-size:24px;#header li acolor:#959595;text-decoration:none;padding:10px;#header ulfloat:right

7、;margin-top:-40px;#header li a:hoverbackground:#202020;color:#d2d2d2;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;现在制作中间部分现在我们在页面的中间部分 content 添加两个 div,如下图:切换到 photoshop 的 psd 页面, 切下中间部分,取名为featured.jpg.如下图:在你的 HTML 页面添加如下代码, 和一些文字介绍:MORE PROJECTSPortfolio project, Jan 5

8、th, 2010 Have youever wanted to create clean and nice portfolio design? In this tutorial Iwill show you how to design clean blue portfolio layout. Have you ever wantedto create clean and nice portfolio design? In this tutorial I will show you howto design clean blue portfolio layout in Adobe Photosh

9、op.在 PSD 文件里,隐藏其他所以图层,只留下按钮图层部分,切下按钮部分,保存 png 格式,命名为 button.png.现在我们把这些图片添加到页面中去,切换到 css 文件页面,添加如下代码,这里包括背景样式,和按钮的样式.#featuredbackground:url(images/featured.jpg) no-repeat;height:381px;margin-top:30px;margin-left:80px;#featured abackground:url(images/button.png);height:30px;width:124px;text-indent:-

10、9999px;position:absolute;margin-top:330px;margin-left:180px;#featured a:hoverbackground-position:0px 30px;现在我们添加些 dummytext(文字介绍)的样式:.dummytextcolor:#d2d2d2;width:245px;margin-top:150px;position:absolute;font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:180%;margin-left:290px;.dumm

11、ytext spanfont-size:16px;color:#191919;font-weight:bold;下面添加添加图片展示下面的分类介绍部分页面的代码部分如下.BEAUTIFULWebDesignFan is a design related blog about web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vector

12、s, wordpress themes and a lot of inspiration.EFFECTIVEWebDesignFan is a design related blog about web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vectors, wordpress themes and a lot of inspira

13、tion.FUNCTIONALWebDesignFan is a design related blog about web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vectors, wordpress themes and a lot of inspiration.我们中间部分的内容,整体看起来应该是这样的:MORE PROJECT

14、SPortfolio project, Jan 5th, 2010 Have youever wanted to create clean and nice portfolio design? In this tutorial Iwill show you how to design clean blue portfolio layout. Have you ever wantedto create clean and nice portfolio design? In this tutorial I will show you howto design clean blue portfoli

15、o layout in Adobe Photoshop.BEAUTIFULWebDesignFan is a design related blog about web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vectors, wordpress themes and a lot of inspiration.EFFECTIVEWeb

16、DesignFan is a design related blog about web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vectors, wordpress themes and a lot of inspiration.FUNCTIONALWebDesignFan is a design related blog abou

17、t web design, photoshop, freebiesand tutorials. We publish useful information dedicated to web designers and developers. Here you can find freeresources like vectors, wordpress themes and a lot of inspiration.去你的 CSS 文件添加下面的代码,#paragraphs spanfont-family:“Myriad pro“, Helvetica, sans-serif;font-size

18、:22px;font-weight:600;letter-spacing:-2px;#paragraphsmargin-left:80px;font-family:Arial, Helvetica, sans-serif;color:#191919;font-size:12px;margin-top:15px;.paragraphwidth:250px;margin-left:15px;float:left;这个就是我们到目前位置的效果:下面处理网站底部现在,我们完成该部分内容,我们将开始创建页脚.首先,在你的 PSD 文件中,隐藏除页脚和页脚纹理层外的其他层,然后把页脚文件夹的东西切片并保存

19、为 footer.jpg.然后再切一遍,把按钮和鸟的图形切下来.分别取名为follow.png 和 bird.jpg.编辑底部代码底部页脚包括一些文字和一个带有链接的小鸟图片.所以在 HTML 页面添加如下代码 .2010 Fictional Design Studio. Design by Webdesignfan.Follow us on Twitter现在, 编辑底部 footer 样式的代码,如下:#footerbackground:url(images/footer.jpg);height:71px;margin-top:191px;#footer pfont-family:Aria

20、l, Helvetica, sans-serif;font-size:12px;color:#959595;position:absolute;margin-top:30px;#footer abackground:url(images/follow.png);text-indent:-9999px;position:absolute;height:27px;width:124px;margin-left:730px;margin-top:30px;#footer imgfloat:right;margin-top:10px;我们用 footer.jpg 做页脚的背景,然后添加一些文字的样式.对于底部的鸟图片的链接,我们用之前同样的办法,利用浮动效果定位。最终效果原创文章如转载,请注明:济南网站建设http:/ 原文链接:http:/

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报