More servicesWindows Live
HomeHotmailSpacesOneCare
 
MSN
Sign in
 
 
Spaces home  祭坛ProfileFriendsBlogMore Tools Explore the Spaces community

祭坛

无奈的小祭司
通缉令
在此留下爪印
10/22/2007

IIS出现server application error,最终解决办法

Server Application Error

The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

访问IIS客户端出现如上错信息提示,

在网上查了查解决方案如下:

1。右键我的电脑--管理--本地用户和组,给IUSR_机器名和IWAM_机器名两个用户设置密码,要一样。

2。开始--运行--打cmd,
然后cd C:\Inetpub\Adminscripts,
然后cscript.exe adsutil.vbs set w3svc/wamuserpass 你的密码,
然后cscript.exe adsutil.vbs set w3svc/anonymoususerpass 你的密码

看一下,行了没有?如果还不行,那么
cscript.exe synciwam.vbs -v,
然后iisreset。

据说就可以了,但是到最后一部提示8004e00f的错误,此错误是MSDTC服务不正常造成的,解决方法:

首先进入组件服务,查看组件服务/计算机/我的电脑/COM+应用程序,结果报错“COM+ 无法与 Microsoft 分布式事务协调程序交谈”,无法查看里面的对象。
2、进入事件查看器,发现msdtc服务没有正常启动。
3、删除注册表中的键:
• HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSDTC
• HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSDTC
• HKEY_CLASSES_ROOTCID
4、停止MSDTC服务:net stop msdtc
5、卸载MSDTC服务:msdtc -uninstall
6、重新安装MSDTC服务:msdtc -install
7、确认在事件查看器中msdtc服务已经正常启动[这步很关键,如果没有,重新启动下电脑看看]
8、重新设置IIS的IWAM账号密码。[在计算机管理中的用户管理里]
9、同步IIS metabase中IWAM_MYSERVER的密码,在CMD中:C:\Inetpub\adminscripts>adsutil set w3svc/wamuserpass "yourpassword"
10、同步COM+应用程序所用的IWAM_MYSERVER密码,在CMD中:C:\Inetpub\adminscripts>cscript synciwam.vbs -v

到这部分网上大部分都说可以了,但是我这里虽然没有8004e00f的错误提示了,但是访问页面Server Application Error 错误依旧,最后终于找到了解决方法如下:

解决办法:
[1]:
检查你的DTC服务(全名:Distributed Transaction Coordinator)是否可以正常启动,

如果正常的话请你跳过此步骤;如果出错,无法正常启动,请在开始菜单的运行中 运行:msdtc -resetlog 以创建日志文件。重起机器,检查IIS是否可以正常使用,若不行继续。

[2]:
在CMD下执行以下命令:
cd %windir%\system32\inetsrv

rundll32 wamreg.dll, CreateIISPackage

regsvr32 asptxn.dll

(到这里我就可以用了,不用重启的)

OK,ASP页面一切正常了!
9/24/2007

(转)几个关于高效工作的建议

2007-09-20 09:42:58 | Author: daxiong
“高效”有时候并不需要什么技巧,很多人在抱怨没有足够时间的时候,其中的潜台词是他们应该更专心。时间对每个人都是公平的,你需要的是不要浪费时间,并且专心。

防止浪费时间的窍门
If the real work that needs doing is offline, disable the internet for an hour at a time.
如果这件事情不需要上网就可以完成,把网断掉。

Turn email checks into an hourly habit, not an “as the box gets mail” habit.
延长查看电子邮件的周期。

Don’t answer your cell phone when working on something important. Call back later.
如果手头的工作很重要,工作期间不要接电话,回头再打过去就是了。

If you can’t work at work, negotiate finding a new place to get things done.
如果你的工作环境让你不能工作,换个没人打扰的地方

Television means: “I don’t need this time and it doesn’t matter to me.” (Almost always. Really.)
看电视意味着“这段时间我浪费了也无所谓”。

Bugdet your entertainment time vs. production time. Never cheat the other.
平衡你的娱乐和工作时间。

Examine every opportunity along the lines of time vs. projects already underway.
时时检查你的时间安排和现在已经进行中的项目。

Try working part of your day in “off-hour” times, to get more done with fewer people around.
以小时为单位划分你的工作时间,用更少的人做更多的事情。

专心的窍门

Write your goals clearly. Post them in eyeball view of where you work most.
清楚的写下你的目标。放在你的眼皮底下。

Spend time with focused people. Meet and befriend those who are where you want to be.
多和专心工作的人在一起。

Consume as much material about your prime focus as you can budget.
尽量把资源用在主要目标上,把时间花在刀刃上。

Analyze your past experiences. Be clear. List your successes. Examine your failures.
回顾总结以往的成功和失败经验。

Stay true to a particular vision of what you want to do.
清楚明白你想要得到的是什么。

Don’t give up too early.
不要太容易放弃。

Envision your success. Write about it. Then read that daily or weekly.
想象一下成功后的样子,写下来,每天读读。

Learn how to “chunk.” Hit each milestone and move to the next. Be methodical.
学会把大事划分为几个阶段,完成一个阶段,再进入下一个。

Develop habits around success and drive.
养成好习惯。

Recharge your batteries with good sleep and food.
吃好睡足。

Develop your relationship with your family. It nourishes the other goals.
维持家庭关系。这是你完成其它工作的保障。
9/11/2007

[ps]一种简单的数码照片后期润饰

作者:罐头盒 来自:中国教程网

  首先用PS打开原片:



  单击右下角小图标建立一个色相/饱和度调整层用来降低原图饱和度:



  单击右下角另外一个小图标建立透明新图层并更改其图层混叠模式:



用画笔工具将需要润饰的部分画几下,这里可以利用色板方便的提取颜色:



  现在我们发现图片色彩过渡不够柔和,所以再执行一下滤镜下面的高斯模糊:



  到这一步效果就出来了,如果不做其他效果的话拼合图层存盘就可以了:



  我喜欢在教程的最后废话几句,并不是所有的图片都适合渲染成这种色调,一般砖墙,树木等物体渲染的效果比较理想,另外如果感觉润饰出的色彩过于鲜艳可以通过降低图层不透明度来调节。

  最后再发两幅这种风格的作品给大家参考:




9/8/2007

[转载]70位专家谈CSS设计

原文取自smashing magazine 下面我对原文大致翻译一下, 以便大家阅读.


CSS 并不总是很好对付. 这取决于你的技巧和经验. CSS编码有时会成为一场噩梦, 特别是当你还不知道文件中的元素应该适用哪些选项的时候. 一个减少代码复杂性的简易法门, 就是利用哪些鲜为人知的CSS属性来创建适用性比较强的正确标注.

下面引用的70个专家技巧,附加了他们的相关文章地址.


1.1. Workflow: 上路

  • 当你确定了设计思路, 请用一个空白页面展开设计. “包括页头 , 导航条, 内容样例 和页脚  之后添加HTML标记, CSS控制,这样会让事情简单清晰起来.” [CSSing]
  • 务必要重置CSS样式表 “你可能会经常删除哪些不必要的特殊设置, 而充分利用每个特性的缺省值. 而另一些人则倾向于做全局重置 Global white space reset , 就是在样式表的开头把所有要素的边据(margin)和空距(padding)全部归零. Eric Meyer’s Global Reset(全局重置), Christian Montoya’s initial CSS file(初始化CSS文件), Mike Rundle’s initial CSS file, Ping Mag’s initial CSS file. [Roger Johansson]
  • 使用主样式表master stylesheet. “一个常见的错误就是, 我看到很多初学者和中级玩家, 在使用样式表的时候, 由于不同的浏览器对一些样式有不同的缺省设置, 再没有统一化的情况下, 就会导致在不同浏览器中显示效果不一致. 而招致程序员抱怨调试困难. 其实, 你只要重置这些设置, 很多问题都可以得到避免. ” [Master Stylesheet: The Most Useful CSS Technique(主样式表: 最有用的CSS技术)], [Ryan Parr]
  1. master.css
  2. @import url("reset.css");
  3. @import url("global.css");
  4. @import url("flash.css");
  5. @import url("structure.css");
  1. <style type="text/css" media="Screen">
  2. /*\*/@import url("css/master.css");/**/
  3. </style>
  • 保持一个有用的CSS对象库. 这对调试很有用, 但应该避免出现在发布的版本中.  因为你可以同时使用多个类名称用来调试你的一个标记(i.e. <p class="floatLeft alignLeft width75">...</p>用了三个类名称来标记<p/>). [Richard K. Miller]
  1. CSS:
  2. .width100 { width: 100%; }
  3. .width75 { width: 75%; }
  4. .width50 { width: 50%; }
  5. .floatLeft { float: left; }
  6. .floatRight { float: right; }
  7. .alignLeft { text-align: left; }
  8. .alignRight { text-align: right; }

1.2. 组织化CSS编码

  • 使用主样式表组织化CSS “用主样式表组织化的样式非常有利于网站维护 . 在这个样式表中输入 reset.css, global.css, flash.css (如果需要) 和 structure.css 以及间歇使用的拓扑样式, 这里是一个如何使用这些技术的样例”
  1. h2 { }
  2. #snapshot_box h2 {
  3. padding: 0 0 6px 0;
  4. font: bold 14px/14px "Verdana", sans-serif; }
  5. #main_side h2 {
  6. color: #444;
  7. font: bold 14px/14px "Verdana", sans-serif; }
  8. .sidetagselection h2 {
  9. color: #fff;
  10. font: bold 14px/14px "Verdana", sans-serif; }
  1. /* -----------------------------------*/
  2. /* ---------->>> GLOBAL <<<-----------*/
  3. /* -----------------------------------*/
  • 用一个内容表来组织样式表. 在你的CSS文件头, 画一个内容表, 例如, 你可以勾画出CSS控制的不同区域, 用醒目的分割来划分他们.  [5 Steps to CSS Heaven(5步跨进CSS天国)]
  • 用字母次序表规划样式表. “我不知道怎么想到这个主意的, 反正用了几个月, 发现找到这些样式很容易.(译者注: 对于中文用户, 除非每个样式的名称很准确,并能被大家理解, 否则可用性会很差.)” [Christian Montoya]
  1. body {
  2. background:#fdfdfd;
  3. color:#333;
  4. font-size:1em;
  5. line-height:1.4;
  6. margin:0;
  7. padding:0;
  8. }
  • 把代码分成不同的块.. “很多人直觉上都会这么做, 只要变成习惯, 经年累月的实践, 这应该是最好的办法. 例如:: /* Structure */, /* Typography */ etc.” [CSS Tips and Tricks(CSS窍门和魔法)]
  • 钩子, 线, 和铅坠Hook, line, and sinker. 一旦你的CSS文档已经分成了不同的区块, 你就应该思考, 如何让这些小节点上的钩子结构化, 这将给你节省大量的时间, 并让文档更有说服力.” [Ryan Parr]
  • 把样式表分成不同的块. “我通常把自己的样式表分成三个块. 第一部分是元素直白定义, 变换文体, 页头风格, 重置表单的间距, 一些链接的风格, 等等. 接下来, 我会定义一些类, 例如提示框, 警告框,  等等, 我倾向于先定义主容器, 然后定义这个主容器中的元素, 这样扫一眼,就可以看到文档的规划结构, 对于哪些没有约束的容器, 我一般也要给他们一个名字." [Jonathan Snook]

1.3. Workflow: 控项编号, 类, 同类项, 属性 Handling IDs, Classes, Selectors, Properties

  • 让容器最小化. “结构化灌装文档. 新手会使用很多像表格一样的单元去构建一个文档. 而用结构化的要素构建文档才是最有效的. 要做到这点, 必须开始之前统盘考虑所有要素, 争取用通用的结构获得相同的效果, 而不是不断定义哪些小巧的DIV单元. ” [Ryan Parr]
  • 属性最小化. “善用CSS. 这个大原则可以派生很多小原则: 如果没有一个点来增加属性, 就不要增加, 如果你不确定该属性的用途, 就不要增加, 如果相同的属性被赋予很多地方, 争取在一个地方定义它.” [CSSing]
  • 同类项最小化. “避免不必要的同类项, 同类项越少, 问题就越容易处理.” [Jonathan Snook]
  • CSS 修复点(hack)最小化. “除非是公认的或文档化的缺陷, 尽量不要使用修复点. 我常常看到的情况是, 修复点本身变成了问题. 最好找到问题的根源, 从根本上解决或避免, 而不是滥用修复点.[10 Quick Tips for an easier CSS life(10个让CSS更简单的窍门)]
  • 使用CSS常量开发. “所谓常量 – 就是在很多地方使用的固定数值. 在CSS文档前面创建这些常量的说明, 颜色对照表, 利用替换的方式, 可以减少修订中的错误.” [Rachel Andrew]
  1. # /*
  2. # Dark grey (text): #333333
  3. # Dark Blue (headings, links) #000066
  4. # Mid Blue (header) #333399
  5. # Light blue (top navigation) #CCCCFF
  6. # Mid grey: #666666
  7. # */
  • 使用通用命名空间. 一套好的命名体系, 会在修复缺陷时, 节省大量时间. 我建议使用 parent_child 结构. [10 CSS Tips]
  • 按语法定义类和编号. “错误的名称会引起岐义, 不便于沟通协作, 也会导致重复定义". [Garrett Dimon]
  • 用通用的CSS定义给同类项编组. “当一些元素的类型,类,或ID:s 使用相同的属性, 你可以把这些同类项编组, 以便一起定义, 而不是分开重复定义” [Roger Johansson]
  • 如果一个独立属性需要复用, 就把它独立出来. “如果你发现一个属性的定义被广泛使用, 不妨把它单拿出来定义” [5 Steps to CSS Heaven]
  • 尽可能树状化表达你的编号和类. 文档的层次化 contextual selectors 十分必要. 这样可以使文档更容易阅读和使用. [Chric Casciano]
  • 学会充分利用CSS的瀑性(继承性)特征. “如果你的网站中有两个类似的显示区(box),你愿意定义两个样式, 还是定义一个样式后, 用一个外部样式对它进行修正?” [5 Steps to CSS heaven]
  • 使用工具化标记(Tag): <small>, <em><strong>. “可以充分使用这些工具化标记, 对XHTML来说, 它具有更好的语意结构性, 过多的利用类来定义类似的要素, 会让文档结构本身的语法环境遭到破坏". [Mike Rundle’s 5 CSS Tips]

1.4. Workflow: 使用缩写标注

  • 缩写十六进位色彩标注. “在颜色定义中: #000 等同于 #000000, #369 等同于 #336699  [Roger Johansson]
  • 用 LoVe/HAte-次序定义链接伪类 Link, Visited, Hover, Active. “可以确保你看到所有的链接样式.” [Eric Meyer]
  1. a:link { color: blue; }
  2. a:visited { color: purple; }
  3. a:hover { color: purple; }
  4. a:active { color: red; }
  • 用 TRouBLed-次序定义外边距, 内边距和边框: Top, Right, Bottom, Left. “用顺时针的方向,从顶部开始定义, 养成这种习惯,还可以用缩写法快速定义.” [Roger Johansson]
  • 使用缩写属性 shorthand properties.
    “使用缩写定义 margin, padding and border 属性可以节省大量空间.
  1. CSS:
  2. margin: top right bottom left;
  3. margin:1em 0 2em 0.5em;
  4. (margin-top: 1em; margin-right: 0; margin-bottom: 2em; margin-left: 0.5em;)
  1. CSS:
  2. border:width style color;
  3. border:1px solid #000;
  1. CSS:
  2. background: color image repeat attachment position;
  3. background:#f00 url(background.gif) no-repeat fixed 0 0;
  1. CSS:
  2. font: font-style (italic/normal) font-variant (small-caps) font-weight font-size/line-height font-family;
  3. font: italic small-caps bold 1em/140% "Lucida Grande",sans-serif;

1.5. Workflow: 建立拓扑结构

  • 用62.5%的比例, 保持 EM单位和PX单位的协同性.  font-size 的缺省值是 16px; 利用这个原则, 你可以换算一个 Em 大约是10像素  (16 x 62.5% = 10). “我倾向于让不同文字之间的比例保持在62.5%. 这样可以让你同时用em 和 px 两种方法思考 ” [Jonathan Snook]
  • 使用通用字符集UTF-8编写代码. . [20 pro tips]
  1. <meta http-equiv="content-type" content="text/ html;charset=utf-8" />
  • 使用 CSS转换大小写. 如果你相让一些内容全部大写, 很简单,只需要在CSS中做如下定义即可”. [20 pro tips]
  1. h1 {
  2. text-transform: uppercase;
  3. }
  • 使用 small-caps . 例如:
  1. h1 {
  2. font-variant: small-caps;
  3. }
  • Cover all the bases - 定义通用字体. “如果我们使用某些特殊的字体, 必须要确定浏览者的机器上也装载这些字体, 因此我们必须了解哪些是通用的字体, 才能保证设计和展示是一致的. [Getting into good coding habits]
  1. p {
  2. font-family: Arial, Verdana, Helvetica, sans-serif;
  3. }
  • 用 1.4em - 1.6em 定义线高 line-height.line-height:1.4”  合理的线长 line-lengths应避免超过10个单词 . 例如纯黑或纯白在CRT显示器上过亮. 尝试使用次白 (#fafafa) 和灰黑(#333333,).比较理想” [Christian Montoya]
  • 用 100.01% 定义HTML元素(html-element). 这个特义值 100.01% 定义字符大小可以解决很多浏览器的bug. 首先, 用百分比设置缺省的 body font size 就用这个值, 这样基本上可以解决IE, Opera, Safari中的字体不同大小和缩放的问题.” [CSS: Getting into good habits]

1.6. Workflow: 调试

  1. * { border: 1px solid #f00; }
  • 调试时, 先检查封闭元素. “很多意想不到的错误,都是由于该封闭的元素,没有被封闭导致的". [10 CSS Tips]

2.1. 技术窍门: IDs, Classes

  • 每页只能有一个ID, 但可以有多个类. “检查你的 IDs: 一个页面只能有一个元素使用一个确定的ID,很多元素可以用相同的类定义, 注意 ID 和 Class 的名字只能用使用 [A-Za-z0-9] 的字母或数字以及连接符号 (-), 开始字母不能用数字或连接符号(参照 CSS2 语法和类型.” [Roger Johansson]
  • 元素在同类项(selectors)中是大小写相关的. “记住大小写相关. 当 CSS用在XHTML, 因为XML是大小写相关的.” [Roger Johansson]
  • CSS classes 和 IDs 必须合法. “我们在定义这些对象的使用最好用他们的功能, 而不是他的外观” [CSS Best Practices]
  • 一个元素可以使用多个类“你可以分配多个类给一个元素, 因此你通过多定义一些不同的类,而有选择的使用他们,完成你对样式的约束.” [Roger Johansson]

2.2. 技术窍门: 利用同类项

Roger Johansson 曾写过很有用的一篇文章 CSS 2.1 Selectors. 强烈推荐阅读这篇文章.你可以发现很多有用的东西. 例如同类项父子定义 ‘>’ 和 ‘+’ 在 IE6 和早期版本中并不支持.

  • 你可以使用子同类项. “A child selector targets an immediate child of a certain element. A child selector consists of two or more selectors separated by a greater than sign, “>”. The parent goes to the left of the “>”, and whitespace is allowed around the combinator. This rule will affect all strong elements that are children of a div element. [Roger Johansson]
  1. div > strong { color:#f00; }
  • 使用多血缘同类项(adjacent sibling selector ). An adjacent sibling selector is made up of two simple selectors separated by a plus sign, “+”. Whitespace is allowed around the adjacent sibling combinator. The selector matches an element which is the next sibling to the first element. The elements must have the same parent and the first element must immediately precede the second element. [Roger Johansson]
  1. p + p { color:#f00; }
  • 使用特性同类项 一个特性同类项, 可以通过四种方式找到要定义的对象:
  1. [att]
  2. Matches elements that have an att attribute, regardless of its value.
  3. [att=val]
  4. Matches elements that have an att attribute with a value of exactly “val”.
  5. [att~=val]
  6. Matches elements whose att attribute value is a space-separated list that contains “val”. In this case “val” cannot contain spaces.
  7. [att|=val]
  8. Matches elements whose att attribute value is a hyphen-separated list that begins with “val”. The main use for this is to match language subcodes specified by the lang attribute (xml:lang in XHTML), e.g. “en”, “en-us”, “en-gb”, etc.

  • The selector in the following rule matches all p elements that have a title attribute, regardless of which value it has:
  1. p[title] { color:#f00; }
  • The selector matches all div elements that have a class attribute with the value error:
  1. div[class=error] { color:#f00; }
  • Multiple attribute selectors can be used in the same selector. This makes it possible to match against several different attributes for the same element. The following rule would apply to all blockquote elements that have a class attribute whose value is exactly “quote”, and a cite attribute (regardless of its value):
  1. blockquote[class=quote][cite] { color:#f00; }
  • 使用降阶同类项descendant selectors. “Descendant selectors can help you eliminate many class attributes from your markup and make your CSS selectors much more efficient. ” [Roger Johansson]

2.3. 技术窍门: 链接样式化

  • 如果使用锚点, 你要小心. “如果在你的编码中使用锚点 (<a name="anchor">) 你要注意, 他会使用 :hover:active 这些伪类. 为避免这些问题, 你要使用ID 来定义这些锚点,或使用内部约束 slightly more arcane 语法: :link:hover, :link:active” [Dave Shea]
  • 定义链接关系 “The rel attribute is supposed to indicate a semantic link relationship from one resource to another.
  1. a[rel~="nofollow"]::after {
  2. content: "\2620";
  3. color: #933;
  4. font-size: x-small;
  5. }
  6. a[rel~="tag"]::after {
  7. content: url(http://www.technorati.com/favicon.ico);
  8. }
  • “These make use of the attribute selector for space separated lists of values. Any a element with a relationship containing those values will be matched. Links with the nofollow relationship will be followed by a dark red skull and crossbones (?) and those with the tag relationship will be followed by the Technocrati icon.” [Handy CSS]
  • You can mark external links automatically. Many people make use of the non-standard rel="external" relationship to indicate a link to an external site. However, adding that to each and every link is time consuming and and unnecessary. This style rule will place an north east arrow after any link on your site to an external site. [Handy CSS]
  1. a[href^="http://"]:not([href*="smashingmagazine.com"])::after {
  2. content: "\2197";
  3. }
  • 利用 outline: none;来去除链接产生的虚点框. 这一点对导航条很有用 remove dotted links
  1. a:focus {
  2. outline: none;
  3. }

2.4. 技术窍门: CSS-技术

  • 付给<body> 标记一个 ID. “大多数情况下, 给body 放置一个 ID , 可以逐页控制CSS, 而不必要不断更换模板” [Ryan Parr, Invasion of Body Switchers]
  • 用CSS创建相同高度的列. Equal Height Technique: a method to make all columns appear to be the same height. But without the need for faux column style background images. Faux Columns: with background images.
  • 用 CSS做垂直布局. “假设你有一个导航菜单高度是2em. 解决方案: 在CSS中把线高设定成和显示模块一样的高度.在这个案例中,字符可以在显示模块中间浮动. ” [Evolt.org]
  • 使用伪元素 pseudo-elements 和类 classes 创建动态内容. Pseudo-classes and pseudo-elements. Pseudo-classes and pseudo-elements can be used to format elements based on information that is not available in the document tree. For example, there is no element that refers to the first line of a paragraph or the first letter of an element’s text content. You can use :first-child, :hover, :active, :focus, :first-line, :first-letter, :before, :after and more.
  • 通过设置 <hr> 分割的更漂亮. “把水平分割线 (<hr>) 用图形代替可以增加页面的美观性. [CSS: Best Practices]
  • 在每个页面使用相同的导航条 (X)HTML-编码. “许多网站都想强化导航条, 但你需要在每个页面优化导航条代码, 我们如何把两者完美的处理好呢?” [Ten More CSS Tricks you may not know]
  1. XHTML:
  2. <ul>
  3. <li><a href="#" class="home">Home</a></li>
  4. <li><a href="#" class="about">About us</a></li>
  5. <li><a href="#" class="contact">Contact us</a></li>
  6. </ul>
  • Insert an id into the <body> tag. The id should be representative of where users are in the site and should change when users move to a different site section.
  1. CSS:
  2. #home .home, #about .about, #contact .contact
  3. {
  4. commands for highlighted navigation go here
  5. }
  • 布局中,使用" margin: 0 auto;" 水平居中. “利用 CSS来水平居中一个元素, 你需要设定这个元素的宽度,和水平间距就可以做到.” [Roger Johansson]
  1. XHTML:
  2. <div id="wrap">
  3. <!-- Your layout goes here -->
  4. </div>
  1. CSS:
  2. #wrap {
  3. width:760px; /* Change this to the width of your layout */
  4. margin:0 auto;
  5. }
  • 给 RSS-feeds附加样式. “用 XSL stylesheet (turn links into clickable links, etc)格式化, CSS让非技术人员更能接受. [Pete Freitag]
  1. <?xml version="1.0" ?>
  2. <?xml-stylesheet type="text/css" href="http://you.com/rss.css" ?>
  3. ...
  • 在老的浏览器中隐藏CSS . “最基本的办法就是利用@import 方法,解决隐藏问题."   [Roger Johansson]
  1. @import "main.css";
  • 在块级的元素定义中, 必须声明外间距和内间距Always declare margin and padding in block-level elements. [10 CSS Tips]
  • 要么设定宽度, 要么设定内间距和外间距 “我的一个重要原则是, 如果我设定了宽度,就不必要设定间距, 同理, 如果设定了间距, 就不必要设定宽度. 在盒状显示模块中, 特别你你用百分比处理的情况下, 我才用设定容器宽度, 里面的元素使用间距设定, 这样一切就会变得游刃有余. ” [Jonathan Snook]
  • 避免使用内间距/边框 和固定的宽度同时定义一个元素. “IE5 会让这样的定义出错, 一切变得一团糟. 为修订宽度的错误, 在父对象中设置内间距,取代子元素固定宽度的方法. [CSS Crib Sheet]
  • 提供打印样式.
  1. <link rel="stylesheet" type="text/css" href="print.css" media="print">
  2. or
  3. <style type=”text/css” media=”print”> @import url(print.css); </style>
  • This ensures that the CSS will only apply to printed output and not affect how the page looks on screen. With your new printed stylesheet you can ensure you have solid black text on a white background and remove extraneous features to maximise readability. More about CSS-based print-Layouts. [20 pro tips]

2.5. 技术窍门: IE 改进

  • 强制 IE 透明化处理 PNG图像. “理论上, PNG 文件支持不同的透明度; 但是. 一个Explorer 6 缺陷让这种方法很难跨浏览器使用” [CSS Tips, Outer-Court.com]
  1. #regular_logo
  2. {
  3. background:url('test.png'); width:150px; height:55px;
  4. }
  5. /* \ */
  6. * html #regular_logo
  7. {
  8. background:none;
  9. float:left;
  10. width:150px;
  11. filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png', sizingMethod='scale');
  12. }
  13. /* */
  1. #container
  2. {
  3. min-width: 600px;
  4. max-width: 1200px;
  5. width:expression(document.body.clientWidth < 600? "600px" : document.body.clientWidth > 1200? "1200px" : "auto");
  6. }
  • 在IE中使用条件说明 “在IE/WIN中,最安全的方式是使用条件说明 conditional comments. 这比使用修正点更有效. 利用这种方法, 可以让IE 使用自己的样式, ” [Roger Johansson]
  1. <!--[if IE]>
  2. <link rel="stylesheet" type="text/css" href="ie.css" />
  3. <![endif]-->

Workflow: 获得灵感

参考和推荐内容:

9/5/2007

53个CSS-不可或缺的技巧

原文:http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/

53 CSS-Techniques You Couldn’t Live Without
53个CSS-不可或缺的技巧
Quote:
CSS is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don’t have in table-layouts - and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just replacing a css-file with another one. Isn’t it great? Well, actualy, it is.
CSS是重要的,它正在越来越广泛的被运用。层叠样式表拥有很多表格布局所没有的优势,首先从布局或者页面的设计与出现在页面中的信息中作严格的分离,从而让页面的设计能够很容易被改变,仅用一个CSS文件更换另一个。难道它不够强大吗?恩,是的,其实它很强大。
Quote:
Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time - of course, if you are able to find them in time. Below you’ll find a list of techniques we , as web-architects, really couldn’t live without. They are essential and they indeed make our life easier. Let’s take a look at 53 CSS-based techniques you should always have ready to hand if you develop web-sites.
在过去的几年里,网站开发者写了很多关于CSS的文章和开发了很 多实用的技巧,这些能帮你节省很多时间。当然,如果你有足够时间也可能发现它们。在下面,你将会发现我们作为网站架构师真正不可或缺的技巧目录。它们确实 是必要的,它们使我们的生活更简单。让我们看一看这53个基于CSS的技巧,如果你做网站开发,应该永远都愿意掌握它们。
Quote:
Thanks to all developers who contributed to accessible and usable css-based design over the last few years. We really appreciate it. Thanks!
感谢所有的在过去几年里在易用和可用的基于CSS设计方面作出贡献的开发者们,我们真的很感谢他们!谢谢你们!

1. CSS Based Navigation //基于CSS的导航

Please click to zoom in!


2. Navigation Matrix Reloaded //导航矩块翻转

Please click to zoom in!


3. CSS Tabs //CSS标签

Please click to zoom in!


4. CSS Bar Graphs //CSS条状图表

Please click to zoom in!


5. Collapsing Tables: An Example //压缩表格:一个实例

Please click to zoom in!


6. Adam’s Radio & Checkbox Customisation Method //亚当的单选框和复选框的用户化方法

Please click to zoom in!


7. CSS Image Replacement //CSS图像替代

Please click to zoom in!


8. CSS Shadows(CSS Shadows Roundup) //CSS阴影(CSS阴影综述)

Please click to zoom in!


9. CSS Rounded Corners Roundup (Nifty Corners) //CSS圆角综述(漂亮的拐角)

Please click to zoom in!


10. Drop Cap-Capital Letters with CSS //用CSS实现首字母下沉

Please click to zoom in!


11. Define Image Opacity with CSS //用CSS定义图像半透明

Please click to zoom in!


12. How to Create a Block Hover Effect for a List of Links //如何给链接列表创建鼠标悬停的区块效果

Please click to zoom in!


13. Pullquotes with CSS (Automatic Pullquotes with JavaScript and CSS) //用CSS实现引用(用JavaScript和CSS实现自动引用)

Please click to zoom in!


14. CSS Diagrams //CSS图表

Please click to zoom in!


15.CSS Curves //CSS曲线

Please click to zoom in!


16. Footer Stickallows for the footer of a Web page to appear either at the bottom of the browser window or the bottom of the Web page content – whichever is visually lowest.

页脚帖允许一个网站页面的页脚显示在在浏览器窗口的底部或者网站页面内容的底部中实际最底的一个。

Please click to zoom in!


17. CSS Image Map //CSS图像地图

Please click to zoom in!


18. CSS Image Pop-Up //CSS图像弹出

Please click to zoom in!


19.CSS Image Preloader //CSS图像预载

Please click to zoom in!


20. CSS Image Replacement for Buttons //CSS按钮的图片替换

Please click to zoom in!


21.Link Thumbnail //链接缩略图

Please click to zoom in!


22. CSS Map Pop //CSS地图提示

Please click to zoom in!


23. PHP-based CSS Style Switcher //基于PHP的CSS样式改变

Please click to zoom in!


24. CSS Unordered List Calender (CSS Styled Calender) //CSS无序列表日历(CSS设计的日历)

Please click to zoom in!


25. CSS-Based Forms: Techniques //基于CSS的表单:技巧

Please click to zoom in!


26. CSS-Based Tables: Techniques //基于CSS的表格:技巧

Please click to zoom in!


27. Printing Web-Documents and CSS //打印网站文档和CSS

Please click to zoom in!


28. Improved Links-Display for Print-Layouts with CSS //用CSS改良打印布局的链接显示

Please click to zoom in!


29. CSS-Submit Buttons //CSS提交按钮

Please click to zoom in!


30. CSS Teaser Box //CSS内容摘要盒子

Please click to zoom in!


31. CSS Tricks for Custom Bullets //对于定义式列表的CSS窍门

Please click to zoom in!


32. Ticked Off Links Reloaded //用记号标出翻转的链接

Please click to zoom in!


33. CSS Zooming //CSS缩放

Please click to zoom in!


34. Creating a Star Rater using CSS //用CSS创建星型评价

Please click to zoom in!


35. The ways to style visited Links //设计浏览过链接的方法

Please click to zoom in!


36. PDF, ZIP, DOC Links Labeling //PDF,ZIP,DOC链接的标注

Please click to zoom in!


37. Displaying Percentages with CSS //用CSS显示百分比

Please click to zoom in!


38. Image Floats without the Text Wrap //没有被正文包围的浮动图片

Please click to zoom in!


39. Let visitors decide, whether or not will they open link in a new window //让访问者决定,是否会在新窗口带开链接

Please click to zoom in!


40. Simple accessible external links //简单易用的外部链接

Please click to zoom in!


41. Zebra Table with JavaScript and CSS //用JavaScript和CSS实现多条纹的表格

Please click to zoom in!


42. Vertical Centering with CSS (Horizontal and Vertical Centering with CSS) //用CSS实现垂直居中(用CSS实现水平和垂直居中)

Please click to zoom in!


43. Unobtrusive Sidenotes //不引人注目的旁注

Please click to zoom in!


44. Image Caption with CSS (Styled Images with Caption) //用CSS实现图像说明(设计给图像加上说明)

Please click to zoom in!


45. Dynamic Piechart with CSS //用CSS实现动态饼图

Please click to zoom in!


46. Format Footnotes with CSS //用CSS实现布局脚注

Please click to zoom in!


47. Hierarchical Sitemap with CSS //用CSS实现分等级的网站地图

Please click to zoom in!


48. Snook’s Resizable Underlines //史鲁克的可改变大小的下划线

Please click to zoom in!


49. Switchy McLayout: An Adaptive Layout Technique //马克布局改变: 一个自适应布局的技巧

Please click to zoom in!


50. StyleMap: CSS+HTML Visual Sitemap //样式地图:CSS+HTML 形象化的网站地图

Please click to zoom in!


51. Custom Reading Width //自定义阅读宽度

Please click to zoom in!


52. CSS Alert Message //CSS提示信息

Please click to zoom in!


53. CSS Production Notes //CSS产品注释

Please click to zoom in!
9/3/2007

主流web2.0网站的配色参考方案

 
Shiny silver [#EEEEEE]
 
Reddit white [#FFFFFF]
 
Magnolia Mag.nolia [#F9F7ED]
 
Interactive action yellow [#FFFF88]
 
Qoop Mint [#CDEB8B]
 
Gmail blue [#C3D9FF]
 
Shadows Grey [#36393D]

Bold

 
Mozilla Red [#FF1A00]
 
Rollyo Red [#CC0000]
 
RSS orange [#FF7400]
 
Techcrunch green [#008C00]
 
Newsvine Green [#006E2E]
 
Flock Blue [#4096EE]
 
Flickr Pink [#FF0084]

Muted

 
Ruby on Rails Red [#B02B2C]
 
Etsy Vermillion [#D15600]
 
43 Things Gold [#C79810]
 
Writely Olive [#73880A]
 
Basecamp Green [#6BBA70]
 
Mozilla Blue [#3F4C6B]
 
Digg Blue [#356AA0]
 
Last.fm Crimson [#D01F3C]
8/28/2007

特殊字符(备用)

➸ ❝❞ o(‧'''‧)o べòべ ⊹⊱⋛⋋ ⋌⋚⊰⊹ ◈ ♦ ◊ ◦ ◇ ◆ⓛⓞⓥⓔ ☀ ☼ 。◕‿◕。 ﹌ の ✿ ﻬ ஐ ✲ ღ ☃ ❆ ☜ ☞ ⊙ ✎ ✟ ➹ ❀ ✏ ஓ ® ↔ ↕ ↘ ♦ ◊ ◦ ◈ ♥ ❤ ╬ 『 』εїзの♈ ➸ ✓ ✔
♂ ♀㊀ ㊁ ㊂ ㊃ ㊄ ㊅ ㊆ ㊇ ㊈ ㊉ ㊊ の♈ ➸ ✓ ✔ ✕ ✖ ㊚ ㊛ *.:。✿*゚‘゚・✿.。.:* ⓛⓞⓥⓔ ╬ ⊹⊱⋛⋋⋌⋚⊰⊹◢◣ ◥◤ ▽ ╱╲ ▶ ▷ ◀ ◁ ☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☑ ☒☢ ☸ ☹ ☽ ☾
①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓆⓇⓈ
ⓉⓊⓋⓌⓍⓎⓏⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ ㊀㊁㊂㊃㊄㊅㊆㊇㊈㊉㊊
。◕‿◕。 ♥♡◑❤ ◕。◕☻☺❀ ❀☏℡✉✖ⓜⓘⓢⓢ◙☻☺♠ ¤ ∂Ω Š ∆ Š Õ╠ ╣Ő ő ∞ ≈ © ‡ † Ž ஜ ஒ ண இ ஆ ௰ ௫& ₪ ▽ ▼►◄◀♧▷◈◎♩♫♭♪♯♬♮♫♯☁☀☃☂♣♥♪♫☼♀♂♦®ᅘ⌂⌒╩╔╚✗✘✚✪✣✤✥✦✧✩✫
➸ ➹.:。*゚・.•°∴ .•ஐﻬ ﻬஐ๑۩۞۩๑ ๑۩۩۩۩๑ ๑۩۩๑๑๑
⊙▂⊙ ⊙0⊙ ⊙︿⊙ ⊙ω⊙ ⊙﹏⊙ ⊙△⊙ ⊙▽⊙
●▂●  ●0●  ●︿●  ●ω●  ●﹏●  ●△●  ●▽●
>▂< >0< >︿< >ω< >﹏< >△< >▽<
ˋ▂ˊ ˋ0ˊ ˋ︿ˊ ˋωˊ ˋ﹏ˊ ˋ△ˊ ˋ▽ˊ
≡(▔﹏▔)≡ ⊙﹏⊙∥∣° ˋ︿ˊ﹀-# ╯︿╰﹀ (=‵′=)
♧ ♡ ♂ ♀ ♠ ♣ ♥ ❤ ☜ ☞ ☎ ☏ ⊙ ◎ ☺ ☻ ☼ ▧ ▨ ♨ ◐ ◑ ↔ ↕ ▪
▒ ◊ ◦ ▣ ▤ ▥ ▦ ▩ ◘ ◈ ◇ ♬ ♪ ♩ ♭ ♪ の ★ ☆ → あ ぃ £ Ю 〓
§ ♤ ♥ ▶ ¤ ๑ ⊹ ⊱ ⋛⋌ ⋚ ⊰⊹ ♂ ♀ ♥ ♡ ► ◄ ▫ ☼ ♦ ▀ ▄ █ ▌≈
๑۩۩.. ..۩۩๑ ๑۩۞۩๑ ✲ ❈ ✿ ✲ ❈ ➹ ~.~ ◕‿-。 ☀☂☁【】┱ ┲ ❣ ✚
✪ ✣ ✤ ✥ ✦ ❉ ❥ ❦ ❧ ❃ ❂ ❁ ❀ ✄ ☪ ☣ ☢ ☠ ☭ ░ ▒ ▬ ♦ ◊
◦ ☼ ♪ の ☆ → ♧ ぃ £ ❤ 。◕‿◕。 ✎ ✟ஐ の♈ ➸ ✓ ✔ ✕ ✖ ㊚ ㊛
* .: 。 ✿*‘ ゚ ・✿.。.:*.♡.·°∴ ☆..·° ☀ ☁ ☂ ☃ ☄ ❉ ❊ ❋ ❖ ❤
☪ ♈ ♨ º º ₪¤ 큐 « » ™ ✿ ㊣ 囨 囚 囨 図 ㊣ •ิ.•ั 囍 ஐﻬ ﻬஐ
❥❦ ❧ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☑ ☒ ☢ ☸ ☹ ☼ ☽ ☾ ♦ ♨ ♩ ✙ ✈
✉ ✌ ✁ ✎ ✐ ❀ ✰ ❁ ❤ ❥ ❦ ❧ ➳ ➽ 〠 〄 ㍿ ♝ ♞ ➳ ➴ ➵ ℗ ♯♮
8/15/2007

Adobe CS3 简体中文设计套装高速下载[附破解方法]

下载速度非常快,1.7G 包括下面的组件


Adobe Creative Suite 3 Design Premium 结合了 Adobe Bridge CS3、Adobe Version Cue® CS3、Adobe Device Central CS3、Adobe Stock Photos 及 Acrobat Connect™ 以及下列产品:

·Adobe Photoshop® CS3 Extended
·Adobe Acrobat® 8 Professional
·Adobe Illustrator® CS3
·Adobe Flash® CS3 Professional
·Adobe Dreamweaver® CS3
·Adobe InDesign® CS3

·Adobe Bridge CS3
·Adobe Device Central CS3
·Adobe Stock Photos
·Adobe Version Cue CS3




1.运行注册机先算出序列号“1326-1165-8516-7134-3301-1179”,然后将其复制到软件界面图①中按“下一步”;


2.点击图②中的“立即激活”继续;


3.点击图③中的“电话激活”继续;


4. 复制图4中软件界面的激活号(0493-8150-8950-3168-1225-0790-5471)到注册机界面的“Activation Number”中按“Authorization Code”算出授权码(2879-3452-9000-7264-7974-5471),最后把授权码复制到软件界面中,按激活;


5.点击“完成”即可成功激活本套装!


下载:
http://www.greendown.cn/soft/7791.html
如果不需要全部组件的话可以用下面的链接分开下载

Adobe.Photoshop.CS3
基于Adobe Photoshop CS3 Extended官方简体中文版制作,免激活,免序列号,支持在线更新,光