推荐阅读

photoshop给草从中的花儿还原真实小清新的色彩
photoshop给草从中的花儿还原真实小清新的色彩原图效果图1、打开素材原图,复制背景图层,图层样式设置为“滤色”如下图2、创建可选颜色图层对,红、黄、白进行调整。参数设置如下图4、创建色彩平衡图层,对高光、中间调和阴影进行调整。参数设置如下图

Iphone苹果手机更换字体教程
在中国拥有iPhone用户已经不少,如果看惯了iPhone自带的字体,能不能更换iPhone的字体呢,下面来看看iPhone字体更换的详细图文教程。工具/原料 iFunbox 了解系统字体 首先我们需要了解,iPhone的系统字体分为三种:系统中文字体,系统英文字体,以及锁屏桌面时间显示字体。我们这里说的系统中文和英文字体不是指手机语言里面的简、繁体中文和英文,而是当你手机语言为中文的时候,手机文字里所显示的中文和英文字体,两种字体分别对应三个文件(中文两个,英文一个)在更好自己iPhone中的字体之前请一定要先备份自己系统原来的字体,这个非常重要。 步骤/方法 打开iFunbox软件。 在iFunbox中依次打开路径:【手机的盘符】/System/Library/Fonts/Cache 在Cashe文件夹中,我们可以看到有很多文件,我们只要找出以下四个文件即可。解释一下:STHeiti-Light 和STHeiti-Medium 对应的是中文字体 HelveticaNeue(有可能是_H_HelveticaNeue)对应的是英文字体 LockClock 对应的是锁屏桌面时间显示的字体。 把下载好的字体,复制到iFunbox的Cashe文件夹中,覆盖掉原有的文件,然后重启iPhone,字体就能被替换更改了。 例如,我下载了华康少女字体,华康少女字体的文件夹中有STHeiti-Light 和STHeiti-Medium两个文件,椒友们要做的就是把这两个文件直接拖进iFunbox的Cashe文件夹(或复制粘贴),然后重启手机就可以了。至于更好英文字体,凌少再这里不推荐,因为不同固件的iPhone,所对应的文件会有所变化,一个修改不好就会出现白苹果。

AutoCad对象重命名
对于图形中的命令对象,用户可使用重命名命令来改变名称,这些对象包括块、标注样式、图层、线型、文字样式、视图、用户坐标系及视口等。该命令的调用方式为: 菜单:【Format(格式)】→【Rename…(重命名)】 命令行:rename(或别ren) 调用该命令后,AutoCAD弹出“Rename(重命名)”对话框,如图16-8所示。 该对话框中左侧为命名对象列表,选择其中某一对象后,右侧将显示该对象中可用于修改的项目列表。用户可选择其中需要重命名的项目,则其名称出现在“Old Name(旧名称)”编辑框中。在Rename To ...按钮右侧的编辑框中输入新名称后,可单击该按钮进行修改。

AutoCad填充图案的定义和创建
32.2.1 简介 使用“bhatch”命令绘制填充图案,同线型一样,AutoCAD中的填充图案也是以图案文件(也称为图案库)的形式保存的,其类型是以“.pat”为扩展名的ASCII文件。可以在AutoCAD中加载已有的图案文件,并从中选择所需的填充图案;也可以修改图案文件或创建一个新的图案文件。 同线型文件一样,在AutoCAD 2002版本中也提供了两个图案文件,即AutoCAD主文件夹的“SUPPORT”子文件夹中的“acad.pat”和“acadiso.pat”,这两个文件分别包含有69种填充图案(包括8种ANSI图案,14种ISO图案和47种其它预定义图案)。以“acad.pat”文件为例来介绍填充图案的定义和定制。 提示 AutoCAD 2000i和2002中提供的填充图案在AutoCAD 2000的基础上增加了一种名为“GRAVEL”的图案。 32.2.2 填充图案的定义 1. 填充图案定义格式 与线型定义类似,填充图案的定义由标题行和模式行两部分组成。 (1) 标题行:由填充图案名称和填充图案描述组成,标题行以“*”为开始标记,填充图案名称和描述由逗号分开,其格式为: *pattern-name [, description](“填充图案名称[,填充图案描述]) (2) 模式行:由图案直线定义和填充线的控制信息组成,一个填充图案中可以定义多种类型的图案直线(AutoCAD对图案直线的数量没有限制。),其格式为:
最新发布

面向对象的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 的外观更具吸引力,但这些空白并不是网页正确工作所必需的。您可以删除空标记、空白、多余标记、不用的和空的样式定义以及指定的某些标记。