推荐阅读
Photoshop调出古典唯美效果图的外景婚片调色
案列对比图:左为原片,右为效果图1、[注:一直不厌其烦的讲复制背景层,不要在背景层上修改]。复制背景层,生成新的背景层,而后复制背景层生成图层1,修改混合模式为滤色,操作目的:提亮。2、创建“色相/饱和度”调整层,设置参数如下:3、创建“渐变映射”调整层,操作布草如下:
插画艺术网
本实例以造型优美的、抽象的花朵形象和渐变的、绚丽的花朵色彩,来表现插花艺术网页页面的设计主题。该设计效果强烈,点、线、面、色彩和图形的组合运用是构成网页的装饰要素。紫红色的运用为画面增添了浪漫气息。如图11-40所示,为本实例的完成效果。图11-40 本实例完成效果在本实例中所设计的内容与主题相符,体现插花这门艺术的优美与浪漫。协调的处理色彩与其他设计要素之间的相互关系,增强网页的信息和情感传递效果,使人们在浏览的时候产生共鸣。在制作过程中主要采用绘制路径、描边路径来绘制图像,使用“画笔”工具来修饰图像的颜色,更改图像的混合模式使两幅图像叠加起来,能得到更加丰富的图像效果。如图11-41所示,为本实例的制作流程。图11-41 本实例制作流程(1)启动Photoshop,执行“文件”→“新建”命令,参照图11-42所示对打开的“新建”对话框进行设置,创建一个名为“插画艺术网”的新文档。图11-42 设置“新建”对话框(2)单击“图层”调板底部的“创建新图层”按钮,新建“图层 1”,然后使用工具箱中的“矩形选框”工具,参照图11-43所示在视图中绘制一个矩形选区。
CSS兼容IE6,IE7,FIREFOX的一些收集
第一种,是CSS HACK的方法height:20px; /*For Firefox*/*height:25px; /*For IE7 & IE6*/_height:20px; /*For IE6*/注意顺序。这样也属于CSS HACK,不过没有上面这样简洁。#example { color: #333; } /* Moz */* html #example { color: #666; } /* IE6 */*+html #example { color: #999; } /* IE7 */第二种是使用IE专用的条件注释<!--其他浏览器 --><link rel="stylesheet" type="text/css" href="css.css" /><!--[if IE 7]><!-- 适合于IE7 --><link rel="stylesheet" type="text/css" href="ie7.css" /><![endif]--><!--[if lte IE 6]><!-- 适合于IE6及一下 --><link rel="stylesheet" type="text/css" href="ie.css" /><![endif]-->第三种css filter的办法,以下为经典从国外网站翻译过来的。.新建一个css样式如下:#item { width: 200px; height: 200px; background: red;} 新建一个div,并使用前面定义的css的样式:
最新发布
面向对象的XHTML与CSS编程
要是XHTML与CSS能面向对象。。太阳应该从北边升起了。但是,凡事都应该带着OO的思想来看问题,也勉强可以凑数拉。其实,早在零几年就有人提出了OO-style,不过已找不到。那要怎样OO呢?现在大家都知道CSS是可以介样写滴: 我们可以把它大约看一个原型,或者说成类,-__-b 好像本来就是类的样子,然后要在HTML里“实例化”一个对象,例如: 该元素会使用上CSS相应的定义,但仅仅对应的class还是不够的,因为我们页面可能会多处应用到这个class,为了处理好“私有”的关系,把刚才的代码改成:
使用CSS截取文字
一般情况下还是使用程序截取,这样输出内容少,减少宽带.但用CSS做些保护也不错. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><style type="text/css"><!--.content {width:100px;border:red 1px solid;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;/*以省略号替代截除部分*/}--></style></head><body><div class="content">此处显示 class "content" 的内容</div></body></html>
用css来实现自动截取文字(兼容IE,firefox,Opera)
用css来实现自动截取文字,不需要后台程序和JS的使用好处是:兼容IE,firefox,Opera;有利于内容完整性;有利于SEO;无需后台程序处理;可以在前台随时调节要截取的长度。不好的地方:不能自动判断截取长度,当字符很短的时候在Firefox中也会生成后面的省略符号。另外在设置截取宽度的时候,要注意,尽量让文字截取完整<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>css文字截取</title> <style type="text/css"> body{font-size:13px;color:#8c966b;} div{clear:both;width:340px;border:1px solid #333;margin:3px;padding:3px;} div a{color:#8c966b;text-decoration:none;} div a:hover{text-decoration:underline;} div a{display:block;width:310px;white-space:nowrap;overflow:hidden;float:left; -o-text-overflow: ellipsis; /* for Opera */ text-overflow:ellipsis; /* for IE */ } div:after{content:"...";padding-left:3px;font-size:12px;}/* for Firefox */ </style> </head> <body> <div><a href="">用css来实现自动截取文字,不需要后台程序和JS的使用</a></div> <div><a href="">好处是:有利于内容完整性,有利于SEO,无需后台程序处理,可以在前台随时调节要截取的长度。</a></div> <div><a href="">不好的地方:不能自动判断截取长度,当字符很短的时候在Firefox中也会生成后面的省略符号。</a></div> <div><a href="">另外在设置截取宽度的时候,要注意,尽量让文字截取完整</a></div> <div><a href="http://www.syku.net">Web标准化 www.syku.net</a></div> </body> </html> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
三列等高CSS布局的一个实例
三列等高CSS布局的一个实例, 修改国外的一个demo, 兼容到了IE5.5+ 和标准的浏览器Opera Firefox Safari。 不过hack太多,不是很喜欢这样做。全部代码如下: <?xml version="1.0" encoding="gb2312"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Content-Language" content="zh-CN" /> <meta content="all" name="robots" /> <title>3 column lauput</title> <style type="text/css" media="screen"> <!-- /*<![CDATA[*/ /*----------------------------------------------------------- @from:http://www.alistapart.com/articles/holygrail @modify:greengnn 08-01-02 ------------------------------------------------------------*/ * { margin:0; padding:0; } body { min-width: 550px; font:normal normal normal 75%/1.25em Verdana, Arial, Helvetica, sans-serif; color:#333333; text-align:left; } /*layout*/ #container { padding-left: 200px; padding-right: 150px; background:#000; zoom:1; } #container:after { content:"."; display: block; height: 0; clear: both; visibility: hidden; } #container { display: inline-block; } /**/ #container { display: block; } /**/ #center, #left, #right { position: relative; float: left; } *+html #center { } #center { width: 100%; } #left { width: 200px; right: 200px; margin-left: -100%; } #right { width: 150px; margin-right: -150px; } #footer { clear: both; } /*Equal-height */ #container { overflow: hidden; } #footer { overflow:hidden; position: relative; } /*IE7 hack*/ *+html #center { position:static; } *+html #left { position:static; } *+html #right { position:static; } *+html #container { position:relative; overflow:hidden; } *+html #left { position:relative; } /*End IE7 hack*/ /*Start Hack for Opera8*/ /**/ #container #center, #container #left, #container #right { padding-bottom: 32767px !important; margin-bottom: -32767px !important; } @media all and (min-width: 0px) { #container #center, #container #left, #container #right { padding-bottom: 0 !important; margin-bottom: 0 !important; } #center:before, #left:before, #right:before { content: "[DO NOT LEAVE IT IS NOT REAL]"; display: block; background: inherit; padding-top: 32767px !important; margin-bottom: -32767px !important; height: 0; } } /**/ /*End Hack for Opera8*/ /*just to see*/ #header, #footer { font-size:40px; line-height:40px; text-align:center; font-weight:bold; color:#cccccc; background:#666666; } #center { background:#eeeeee; } #left { background:#FF9933; } #right { background:#0099CC; } /*]]>*/ --> </style> </head> <body> <div id="header">header(test in IE5.5+ opera9.0 Firefox 2.0)</div> <div id="container"> <div id="center"> <h2>Abstract</h2> <p>The web is constantly evolving. New and innovative websites are being created every day, pushing the boundaries of HTML in every direction. HTML 4 has been around for nearly a decade now, and publishers seeking new techniques to provide enhanced functionality are being held back by the constraints of the language and browsers.</p> <p>To give authors more flexibility and interoperability, and enable more interactive and exciting websites and applications, HTML 5 introduces and enhances a wide range of features including form controls, APIs, multimedia, structure, and semantics.</p> <p>Work on HTML 5, which commenced in 2004, is currently being carried out in a joint effort between the <a href="http://www.w3.org/html/"><abbr title="W3C HTML Working Group">W3C HTML WG</abbr></a> and the <a href="http://www.whatwg.org/"><abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a>. Many key players are participating in the W3C effort including representatives from the four major browser vendors: Apple, Mozilla, Opera, and Microsoft; and a range of other organisations and individuals with many diverse interests and expertise.</p> <p>Note that <a href="http://www.w3.org/html/wg/html5/">the specification</a> is still a <em>work in progress</em> and quite a long way from completion. As such, it is possible that any feature discussed in this article may change in the future. This article is intended to provide a brief introduction to some of the major features as they are in the current draft.</p> </div> <div id="left"> <h2>Abstract</h2> <p>The web is constantly evolving. New and innovative websites are being created every day, pushing the boundaries of HTML in every direction. HTML 4 has been around for nearly a decade now, and publishers seeking new techniques to provide enhanced functionality are being held back by the constraints of the language and browsers.</p> <p>To give authors more flexibility and interoperability, and enable more interactive and exciting websites and applications, HTML 5 introduces and enhances a wide range of features including form controls, APIs, multimedia, structure, and semantics.</p> <p>Work on HTML 5, which commenced in 2004, is currently being carried out in a joint effort between the <a href="http://www.w3.org/html/"><abbr title="W3C HTML Working Group">W3C HTML WG</abbr></a> and the <a href="http://www.whatwg.org/"><abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a>. Many key players are participating in the W3C effort including representatives from the four major browser vendors: Apple, Mozilla, Opera, and Microsoft; and a range of other organisations and individuals with many diverse interests and expertise.</p> <p>Note that <a href="http://www.w3.org/html/wg/html5/">the specification</a> is still a <em>work in progress</em> and quite a long way from completion. As such, it is possible that any feature discussed in this article may change in the future. This article is intended to provide a brief introduction to some of the major features as they are in the current draft.</p> </div> <div id="right"> <h2>Abstract</h2> <p>The web is constantly evolving. New and innovative websites are being created every day, pushing the boundaries of HTML in every direction. HTML 4 has been around for nearly a decade now, and publishers seeking new techniques to provide enhanced functionality are being held back by the constraints of the language and browsers.</p> <p>To give authors more flexibility and interoperability, and enable more interactive and exciting websites and applications, HTML 5 introduces and enhances a wide range of features including form controls, APIs, multimedia, structure, and semantics.</p> <p>Work on HTML 5, which commenced in 2004, is currently being carried out in a joint effort between the <a href="http://www.w3.org/html/"><abbr title="W3C HTML Working Group">W3C HTML WG</abbr></a> and the <a href="http://www.whatwg.org/"><abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a>. Many key players are participating in the W3C effort including representatives from the four major browser vendors: Apple, Mozilla, Opera, and Microsoft; and a range of other organisations and individuals with many diverse interests and expertise.</p> <p>Note that <a href="http://www.w3.org/html/wg/html5/">the specification</a> is still a <em>work in progress</em> and quite a long way from completion. As such, it is possible that any feature discussed in this article may change in the future. This article is intended to provide a brief introduction to some of the major features as they are in the current draft.</p> </div> </div> <div id="footer">footer</div> </body> </html> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
IE8的一些CSS hack
xhtml代码: 主要是测试“文字”这个颜色在不同浏览器下使用hack的一些结果报告。 早上测试的东西少了几个,这里补上,还有更多的东西等怿飞的测试报告。下午有时间再看看其他一些属性,不过现在这些只是IE8测试版的问题,正式版应该会改进的。
使用CSS的dl、dd、dt制作标准表单
虽然追求div重构并不意味要抛弃table,但更多时候不妨用用css里的dl、dd、dt元素来制作表单。 内容部分: CSS部分: 演示:http://www.syku.net/demo/demo10/
FrontPage2003 教程 新功能(发布网站部分)
远程网站视图 Microsoft Office FrontPage 2003 中的远程网站视图可以帮助您将整个网站和单独的文件和文件夹发布到任何位置:扩展的 Web 服务器、支持文件传输协议 (FTP) 或基于 Web 的分布式创作和版本控制 (WebDAV) 的 Web 服务器、或文件系统中的某个位置。 远程网站视图同时显示本地网站和远程网站中的文件。图标和说明性文本会指示文件和文件夹的状态,同步功能有助于确保不会意外地覆盖任何文件或文件夹。 连接到远程网站 通过新的远程网站对话框可以指定连接设置,并有助于您管理连接类型和协议 ― 包括安全套接字层 (SSL) 或被动 FTP。 优化HTML 在本地网站上或将网页发布到远程网站时,可以在文件和文件夹中生成干净的 HTML 代码。这意味着通过删除多余的格式和标记,可以减少网页的大小。Web 设计人员可以使用空白使 HTML 的外观更具吸引力,但这些空白并不是网页正确工作所必需的。您可以删除空标记、空白、多余标记、不用的和空的样式定义以及指定的某些标记。
