ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:339.85KB ,
资源ID:15581168      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-15581168.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(PSD网页切图制作HTML教程1.docx)为本站会员(b****6)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

PSD网页切图制作HTML教程1.docx

1、PSD网页切图制作HTML教程1PSD网页切图制作HTML教程把psd页面利用div+css切割成html页面首先看看效果下面的图片就是效果图,切割出来后,可能头部和底部会宽点.新建文件夹开始时,在您的计算机中创建一个文件夹。我把它命名为zmool。再在文 件夹中创建新文件夹images,放网站的所有图像。接下来打开代码编辑器(Dreamweaver),并在根目录下创建一个HTML文件名为 index.html,这是我们的主页模板。现在创建一个新的CSS文件,并将其命名为style.css文件。如下图:打开index.html文件。在head标签顶部,添加链接到您的样式 表(style.css

2、)。你可以使用下面的代码。头部的代码如下面:Modern Design Studio建立HTML结构现在,我们将设置HTML文件结构。设置3个部分(标题,内容,页脚)像 下面一样:Untitled Document切割背景我们的PSD文件包含了很多纹理效果,我们要把这些全部切出来,然后,用 代码添加到网页上面,使div页面效果和设计的效果达到一致。 现在在photoshop里面打开原先设计好的, 隐藏所以的图层,除背景层外.现在采取的切片工具,选择背景,保存网页web格式按(ALT +shift+Ctrl + S)。然后保存的图像文件夹文件名为background.jpg。设置背景样式打开st

3、yle.css文件,设置基本样式,还有背景样以及主体部分的宽 度,如下代码:* margin: 0px; padding: 0px;body background:url(images/background.jpg);#container margin: auto; width: 960px;切割头部返回photoshop,隐藏所以图层,除头部背景外,并用同样的方法, 把头部背景图片切割保存为web格式,保存文件名为head.jpg。编辑头部背景代码在style.css文件里编辑如下代码:#header background:url(images/header.jpg); height:124

4、px;切割头部logo在这时,切割logo层,隐藏所有图层,包括背景层,如上同样方法切割 logo层保存为logo.png,注意:保存为png格式图片添加在页面添加logo现在返回到html中,在#header #container内,添加下面的代码. 现在, 下面切换到style.css文件,编写#logo样式.#logo margin-top:20px; border:none;编辑导航代码下面是页面里的代码,头部header包括logo和导航两个部分. Home About Work Blog Contact 导航样式如下:现在,添加css表里的导航样式,ul、li和链接a的样式:#he

5、ader li color:#959595; list-style:none; float:left; margin-right:20px; font-family:Myriad Pro,arial; font-weight:bold; font-size:24px;#header li a color:#959595; text-decoration:none; padding:10px;#header ul float:right; margin-top:-40px;#header li a:hover background:#202020; color:#d2d2d2; -moz-bor

6、der-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px;现在制作中间部分现在我们在页面的中间部分content添加两个div,如下图: 切换到photoshop的psd页面, 切下中间部分,取名为featured.jpg.如下图:在你的HTML页面添加如下代码, 和一些文字介绍: MORE PROJECTS Portfolio project, Jan 5th, 2010 Have you ever wanted to create clean and nice portfolio design? In this

7、tutorial I will show you how to design clean blue portfolio layout. Have you ever wanted to create clean and nice portfolio design? In this tutorial I will show you how to design clean blue portfolio layout in Adobe Photoshop. 在PSD文件里,隐藏其他所以图层,只留下按钮图层部分,切下按钮部分, 保存png格式,命名为button.png.现在我们把这些图片添加到页面中去

8、,切换到css文件页面,添加如下代 码,这里包括背景样式,和按钮的样式.#featured background:url(images/featured.jpg) no-repeat; height:381px; margin-top:30px; margin-left:80px;#featured a background:url(images/button.png); height:30px; width:124px; text-indent:-9999px; position:absolute; margin-top:330px; margin-left:180px;#featured

9、a:hover background-position:0px 30px;现在我们添加些dummytext(文字介绍)的样式:.dummytext color:#d2d2d2; width:245px; margin-top:150px; position:absolute; font-family:Arial, Helvetica, sans-serif; font-size:12px; line-height:180%; margin-left:290px;.dummytext span font-size:16px; color:#191919; font-weight:bold;下面添

10、加添加图片展示下面的分类介绍部分页面的代码部分如下. BEAUTIFULWebDesignFan is a design related blog about web design, photoshop, freebies and tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. EFFECTIVEW

11、ebDesignFan is a design related blog about web design, photoshop, freebies and tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. FUNCTIONALWebDesignFan is a design related blog

12、 about web design, photoshop, freebies and tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. 我们中间部分的内容,整体看起来应该是这样的: MORE PROJECTS Portfolio project, Jan 5th, 2010 Have you ever

13、 wanted to create clean and nice portfolio design? In this tutorial I will show you how to design clean blue portfolio layout. Have you ever wanted to create clean and nice portfolio design? In this tutorial I will show you how to design clean blue portfolio layout in Adobe Photoshop. BEAUTIFULWebDe

14、signFan is a design related blog about web design, photoshop, freebies and tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. EFFECTIVEWebDesignFan is a design related blog abou

15、t web design, photoshop, freebies and tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. FUNCTIONALWebDesignFan is a design related blog about web design, photoshop, freebies an

16、d tutorials. We publish useful information dedicated to web designers and developers. Here you can find free resources like vectors, wordpress themes and a lot of inspiration. 去你的CSS文件添加下面的代码,#paragraphs span font-family:Myriad pro, Helvetica, sans-serif; font-size:22px; font-weight:600; letter-spac

17、ing:-2px;#paragraphs margin-left:80px; font-family:Arial, Helvetica, sans-serif; color:#191919; font-size:12px; margin-top:15px;.paragraph width:250px; margin-left:15px; float:left;这个就是我们到目前位置的效果:下面处理网站底部现在,我们完成该部分内容,我们将开始创建页脚.首先,在你的PSD文件中,隐藏除页脚和页脚纹理层外的其他层,然后把页 脚文件夹的东西切片并保存为footer.jpg.然后再切一遍,把按钮和鸟的图

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

19、font-size:12px; color:#959595; position:absolute; margin-top:30px;#footer a background:url(images/follow.png); text-indent:-9999px; position:absolute; height:27px; width:124px; margin-left:730px; margin-top:30px;#footer img float:right; margin-top:10px;我们用footer.jpg 做页脚的背景,然后添加一些文字的样式.对于底部的鸟图片的链接,我们用之前同样的办法,利用浮动效果定位。最终效果文件下载地址 (0,7 MB)到现在就算是结束了,不知道大家有没有看懂,不懂的就留言,什么地方不 懂,我再添加修改下,哈哈

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2