<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>网站用户体验整合设计</title><link>http://www.zhangmeigong.cn/</link><description>张明工作室</description><generator>RainbowSoft Studio Z-Blog 1.8 Spirit Build 80605</generator><language>zh-CN</language><copyright>Copyright zhangming WebSite. Some Rights Reserved.</copyright><pubDate>Wed, 21 Jul 2010 13:27:56 +0800</pubDate><item><title>基本的 HTML 标签 </title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/212.html</link><pubDate>Mon, 05 Jul 2010 10:27:26 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/212.html</guid><description><![CDATA[<p><table border="0" cellpadding="0">    <tbody>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">标签描述 </span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_html.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;html&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义 HTML 文档。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_body.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;body&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义文档的主体。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_hn.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;h1&gt; to &lt;h6&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义标题 1 至标题 6。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_p.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;p&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义段落。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_br.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;br&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">插入折行。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_hr.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;hr&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义水平线。</span></div>            </td>        </tr>        <tr>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt"><a href="http://www.dosite.cn/tags/tag_comment.asp"><span style="color: #3b5998; text-decoration: none; text-underline: none">&lt;!--&gt;</span></a></span></div>            </td>            <td style="border-bottom: #f0f0f0; border-left: #f0f0f0; padding-bottom: 0.75pt; background-color: transparent; padding-left: 0.75pt; padding-right: 0.75pt; border-top: #f0f0f0; border-right: #f0f0f0; padding-top: 0.75pt">            <div align="left"><span style="font-size: 12pt">定义注释。</span></div>            </td>        </tr>    </tbody></table></p><div align="left"><u><span style="font-size: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">标题</span></b></div><div align="left"><span style="font-size: 12pt">标题使用 &lt;h1&gt; 至 &lt;h6&gt; 标签进行定义。&lt;h1&gt; 定义最大的标题。&lt;h6&gt; 定义最小的标题。</span></div><div align="left"><span style="font-size: 12pt">&lt;h1&gt;This is a heading&lt;/h1&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;h2&gt;This is a heading&lt;/h2&gt;</span></div><div align="left"><span style="font-size: 12pt">&lt;h3&gt;This is a heading&lt;/h3&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;h4&gt;This is a heading&lt;/h4&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;h5&gt;This is a heading&lt;/h5&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;h6&gt;This is a heading&lt;/h6&gt; </span></div><div align="left"><span style="font-size: 12pt">HTML </span><span style="font-size: 12pt">会自动在标题前后添加一个额外的折行。</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">段落</span></b></div><div align="left"><span style="font-size: 12pt">段落使用 &lt;p&gt; 标签进行定义。</span></div><div align="left"><span style="font-size: 12pt">&lt;p&gt;This is a paragraph&lt;/p&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;p&gt;This is another paragraph&lt;/p&gt; </span></div><div align="left"><span style="font-size: 12pt">HTML </span><span style="font-size: 12pt">会自动在段落前后添加一个额外的空行。</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">换行符</span></b></div><div align="left"><span style="font-size: 12pt">当你打算结束一行，而又不想开始一个新段落时，&lt;br&gt; 标签就派上用场了。无论你将它置于何处，&lt;br&gt; 标签都会产生一个强制的换行。</span></div><div align="left"><span style="font-size: 12pt">&lt;p&gt;This &lt;br&gt; is a para&lt;br&gt;graph with line breaks&lt;/p&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;br&gt; </span><span style="font-size: 12pt">标签是空白标签，由于关闭标签没有任何意义，因此它没有类似 &lt;/br&gt; 的终止标签。</span></div><div align="left"><span style="font-size: 12pt">&lt;br&gt; </span><span style="font-size: 12pt">还是 &lt;br /&gt; </span></div><div align="left"><span style="font-size: 12pt">您会越来越多地发现 &lt;br&gt; 与 &lt;br /&gt; 很相似。</span></div><div align="left"><span style="font-size: 12pt">由于 &lt;br&gt; 没有结束标签，它也就违反了未来的 HTML 的规则之一，即所有的元素都必须关闭。</span></div><div align="left"><span style="font-size: 12pt">把这个标签写为 &lt;br /&gt; 是经得起未来考验的做法，XHTML 和 XML 都接受在打开的标签内部来关闭标签的做法。</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">HTML </span></b><b><span style="font-size: 12pt">注释</span></b></div><div align="left"><span style="font-size: 12pt">注释标签用于在 HTML 源码中插入注释。注释会被浏览器忽略。您可以使用注释对您的代码进行解释，这么做在以后的日子里会对您的代码编辑产生帮助。</span></div><div align="left"><span style="font-size: 12pt">&lt;!-- This is a comment --&gt; </span></div><div align="left"><span style="font-size: 12pt">注意：左括号后需要写一个惊叹号，右括号前就不需要了。</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">锚标签和 Href 属性</span></b></div><div align="left"><b><span style="font-size: 12pt">HTML </span></b><b><span style="font-size: 12pt">使用 &lt;a&gt; （锚）标签来创建连接另一个文档的链接。</span></b></div><div align="left"><span style="font-size: 12pt">锚可以指向网络上的任何资源：一张 HTML 页面，一幅图像，一个声音或视频文件等等。</span></div><div align="left"><span style="font-size: 12pt">创建锚的语法：</span></div><div align="left">&nbsp;</div><div align="left"><span style="font-size: 12pt">&lt;a href=&quot;url&quot;&gt;Text to be displayed&lt;/a&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;a&gt; </span><span style="font-size: 12pt">用来创建锚。href 属性用于定位需要链接的文档，锚的开始标签和结束标签之间的文字被作为超级链接来显示。</span></div><div align="left"><span style="font-size: 12pt">这个锚定义了指向 Dosite 的链接：</span></div><div align="left"><span style="font-size: 12pt">&lt;a href=&quot;http://www.Dosite.cn/&quot;&gt;Visit Dosite!&lt;/a&gt;</span></div><div align="left">&nbsp;</div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">Target </span></b><b><span style="font-size: 12pt">属性</span></b></div><div align="left"><span style="font-size: 12pt">使用 Target 属性，你可以定义被链接的文档在何处显示。</span></div><div align="left"><span style="font-size: 12pt">下面的这行会在新窗口打开文档：</span></div><div align="left"><span style="font-size: 12pt">&lt;a href=&quot;http://www.Dosite.cn/&quot; target=&quot;_blank&quot;&gt;Visit Dosite!&lt;/a&gt; </span></div><div align="left">&nbsp;</div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">锚标签和 Name 属性</span></b></div><div align="left"><span style="font-size: 12pt">Name </span><span style="font-size: 12pt">属性用于创建被命名的锚（named anchors）。当使用命名锚（named anchors）时，我们可以创建直接跳至页面中某个节的链接，这样使用者就无需不停的滚动页面来寻找他们需要的信息。</span></div><div align="left"><span style="font-size: 12pt">以下是命名锚的语法：</span></div><div align="left"><span style="font-size: 12pt">&lt;a name=&quot;label&quot;&gt;Text to be displayed&lt;/a&gt; </span></div><div align="left"><span style="font-size: 12pt">name </span><span style="font-size: 12pt">属性用于创建命名锚。锚的名称可以是任何你喜欢的名字。</span></div><div align="left"><span style="font-size: 12pt">下面这行定义了命名锚：</span></div><div align="left"><span style="font-size: 12pt">&lt;a name=&quot;tips&quot;&gt;Useful Tips Section&lt;/a&gt; </span></div><div align="left"><span style="font-size: 12pt">你会注意到，命名锚会以特殊的方式来显示。</span></div><div align="left"><span style="font-size: 12pt">将 # 符号和锚名称添加到 URL 的末端，就可以直接链接到 tips 这个节，就像这样：</span></div><div align="left"><span style="font-size: 12pt">&lt;a href=&quot;http://www.Dosite.cn/html_links.asp#tips&quot;&gt; Jump to the Useful Tips Section &lt;/a&gt;</span></div><div align="left">&nbsp;</div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">框架结构标签（&lt;frameset&gt;）</span></b></div><ul type="disc">    <li style="text-align: left"><span style="font-size: 12pt">框架结构标签（&lt;frameset&gt;）定义如何将窗口分割为框架 </span></li>    <li style="text-align: left"><span style="font-size: 12pt">每个 frameset 定义了一系列行<i>或</i>列 </span></li>    <li style="text-align: left"><span style="font-size: 12pt">rows/columns </span><span style="font-size: 12pt">的值规定了每行或每列占据屏幕的面积 </span></li></ul><div align="left"><span style="font-size: 12pt">编者注：frameset 标签也被某些文章和书籍译为框架集。</span></div><div align="left"><b><span style="font-size: 12pt">框架标签（Frame）</span></b></div><div align="left"><span style="font-size: 12pt">Frame </span><span style="font-size: 12pt">标签定义了放置在每个框架中的 HTML 文档。</span></div><div align="left"><span style="font-size: 12pt">在下面的这个例子中，我们设置了一个两列的框架集。第一列被设置为占据浏览器窗口的 25%。第二列被设置为占据浏览器窗口的 75%。HTML 文档 &quot;frame_a.htm&quot; 被置于第一个列中，而 HTML 文档 &quot;frame_b.htm&quot; 被置于第二个列中：</span></div><div align="left"><span style="font-size: 12pt">&lt;frameset cols=&quot;25%,75%&quot;&gt; &nbsp;&nbsp; &lt;frame src=&quot;frame_a.htm&quot;&gt; &nbsp;&nbsp; &lt;frame src=&quot;frame_b.htm&quot;&gt; &lt;/frameset&gt;</span></div><div align="left">&nbsp;</div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">表格</span></b></div><div align="left"><span style="font-size: 12pt">表格由 &lt;table&gt; 标签来定义。每个表格均有若干行（由 &lt;tr&gt; 标签定义），每行被分割为若干单元格（由 &lt;td&gt; 标签定义）。字母 td 指表格数据（table data），即数据单元格的内容。数据单元格可以包含文本、图片、列表、段落、表单、水平线、表格等等。</span></div><div align="left"><span style="font-size: 12pt">&lt;table border=&quot;1&quot;&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt;</span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 2, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 2, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/table&gt;</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">表格和边框属性</span></b></div><div align="left"><span style="font-size: 12pt">如果不定义边框属性，表格将不显示边框。有时这很有用，但是大多数时候，我们希望显示边框。</span></div><div align="left"><span style="font-size: 12pt">使用边框属性来显示一个带有边框的表格</span></div><div align="left"><span style="font-size: 12pt">&lt;table border=&quot;1&quot;&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;Row 1, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;Row 1, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/table&gt;</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">表格的表头</span></b></div><div align="left"><span style="font-size: 12pt">表格的表头使用 &lt;th&gt; 标签进行定义。</span></div><div align="left"><span style="font-size: 12pt">&lt;table border=&quot;1&quot;&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;th&gt;Heading&lt;/th&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;th&gt;Another Heading&lt;/th&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 2, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 2, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/table&gt;</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">表格中的空单元格</span></b></div><div align="left"><span style="font-size: 12pt">在大多数浏览器中，没有内容的表格单元显示得不太好。</span></div><div align="left"><span style="font-size: 12pt">&lt;table border=&quot;1&quot;&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 1, cell 2&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;row 2, cell 1&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;td&gt;&lt;/td&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/tr&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/table&gt;</span></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">HTML </span></b><b><span style="font-size: 12pt">列表</span></b></div><div align="left"><b><span style="font-size: 12pt">HTML </span></b><b><span style="font-size: 12pt">支持有序、无序和定义列表</span></b></div><div align="left">&nbsp;</div><div align="left"><b><span style="font-size: 12pt">无序列表</span></b></div><div align="left"><span style="font-size: 12pt">无序列表是一个项目的列表，此列项目使用粗体圆点（典型的小黑圆圈）进行标记。</span></div><div align="left"><span style="font-size: 12pt">无序列表始于 &lt;ul&gt; 标签。每个列表项始于 &lt;li&gt;。</span></div><div align="left"><span style="font-size: 12pt">&lt;ul&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;li&gt;Coffee&lt;/li&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;li&gt;Milk&lt;/li&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/ul&gt; </span></div><div align="left"><span style="font-size: 12pt">列表项内部可以使用段落、换行符、图片、链接以及其他列表等等。</span></div><div align="left"><b><span style="font-size: 12pt">有序列表</span></b></div><div align="left"><span style="font-size: 12pt">同样，有序列表也是一列项目，列表项目使用数字进行标记。</span></div><div align="left"><span style="font-size: 12pt">有序列表始于 &lt;ol&gt; 标签。每个列表项始于 &lt;li&gt; 标签。</span></div><div align="left"><span style="font-size: 12pt">&lt;ol&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;li&gt;Coffee&lt;/li&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;li&gt;Milk&lt;/li&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/ol&gt; </span></div><div align="left">&nbsp;</div><div align="left"><span style="font-size: 12pt">列表项内部可以使用段落、换行符、图片、链接以及其他列表等等。</span></div><div align="left"><b><span style="font-size: 12pt">定义列表</span></b></div><div align="left"><span style="font-size: 12pt">自定义列表不仅仅是一列项目，而是项目及其注释的组合。</span></div><div align="left"><span style="font-size: 12pt">自定义列表以 &lt;dl&gt; 标签开始。每个自定义列表项以 &lt;dt&gt; 开始。每个自定义列表项的定义以 &lt;dd&gt; 开始。</span></div><div align="left"><span style="font-size: 12pt">&lt;dl&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;dt&gt;Coffee&lt;/dt&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;dd&gt;Black hot drink&lt;/dd&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;dt&gt;Milk&lt;/dt&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;dd&gt;White cold drink&lt;/dd&gt; </span></div><div align="left"><span style="font-size: 12pt">&lt;/dl&gt; </span></div><div align="left"><span style="font-size: 12pt">浏览器显示如下：</span></div><div align="left"><span style="font-size: 12pt">Coffee Black hot drink Milk White cold drink </span></div><div align="left"><span style="font-size: 12pt">定义列表的列表项内部可以使用段落、换行符、图片、链接以及其他列表等等。</span></div>]]></description><category>css+div</category><comments>http://www.zhangmeigong.cn/post/212.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=212</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=212&amp;key=616cfa19</trackback:ping></item><item><title>Web前端工程师技能列表</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/211.html</link><pubDate>Tue, 08 Jun 2010 10:32:40 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/211.html</guid><description><![CDATA[<p><span style="line-height: 150%; font-size: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 要打造<b>一流的</b><b>Web</b><b>产品</b>开发团队，在团队成员基础能力上一定要下功夫。对于Web前端产品开发来说，仅仅掌握Web1.0时代简单的&rdquo;网页套接&rdquo;是完全不够的。我结合自己的团队配备，特此罗列了Web前端产品工程师所涉及的技能列表如下：</span></p><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="line-height: 150%">通过许多实际项目，个人认为一个完备的前端产品开发团队，必须拥有如下的人才配备，也希望大家补充：</span></div><ul type="disc">    <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">团队全体成员达到所有技能中的</span><span style="line-height: 150%">a</span><span style="line-height: 150%">级标准</span></li>    <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">团队全体成员必须掌握两项技能中的</span><span style="line-height: 150%">b</span><span style="line-height: 150%">级标准，并保证所有的</span><span style="line-height: 150%">b</span><span style="line-height: 150%">级标准在该团队中有</span><span style="line-height: 150%">50%</span><span style="line-height: 150%">以上成员能达到</span></li>    <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">团队全体成员必须掌握一项技能中的</span><span style="line-height: 150%">c</span><span style="line-height: 150%">级标准，并保证所有的</span><span style="line-height: 150%">c</span><span style="line-height: 150%">级标准在该团队中有</span><span style="line-height: 150%">25%</span><span style="line-height: 150%">以上成员能达到</span></li></ul><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp; </span><span style="line-height: 150%">具体技能描述：</span></div><ul type="disc">    <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">【必备】</span></b><b><span style="line-height: 150%">UserInterface</span></b></li>    <li style="text-align: left; line-height: 150%">&nbsp;    <ol type="1">        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">PhotoShop/Fireworks Design<br />        a - </span><span style="line-height: 150%">配合美工将草图形成具体的符合</span><span style="line-height: 150%">WebPage</span><span style="line-height: 150%">的设计</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">有快速制作分层高品质</span><span style="line-height: 150%">PSD</span><span style="line-height: 150%">、</span><span style="line-height: 150%">PNG</span><span style="line-height: 150%">的能力</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">能迅速将</span><span style="line-height: 150%">PSD</span><span style="line-height: 150%">、</span><span style="line-height: 150%">PNG</span><span style="line-height: 150%">的内容构思成</span><span style="line-height: 150%">div+css</span><span style="line-height: 150%">或者</span><span style="line-height: 150%">table</span><span style="line-height: 150%">等</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">代码</span></li>        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Flash Design<br />        a - </span><span style="line-height: 150%">基本动画效果</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">复杂的交互体系设计，了解第三方</span><span style="line-height: 150%">swf</span><span style="line-height: 150%">辅助设计软件</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">复杂的交互体系设计以及较强的对各类外埠资源（</span><span style="line-height: 150%">PNG</span><span style="line-height: 150%">、</span><span style="line-height: 150%">JPG</span><span style="line-height: 150%">、</span><span style="line-height: 150%">MP3</span><span style="line-height: 150%">、</span><span style="line-height: 150%">WAV</span><span style="line-height: 150%">等）的整合能力。精通部分第三方辅助设计软件（</span><span style="line-height: 150%">AE</span><span style="line-height: 150%">、</span><span style="line-height: 150%">SwishMax</span><span style="line-height: 150%">、</span><span style="line-height: 150%">Swift3D</span><span style="line-height: 150%">等）</span></li>    </ol>    </li>    <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">【必备】</span></b><b><span style="line-height: 150%">Browser-side (Web Application)</span></b></li>    <li style="text-align: left; line-height: 150%">&nbsp;    <ol type="1">        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">XHTML/CSS<br />        a - </span><span style="line-height: 150%">基本的</span><span style="line-height: 150%">layout</span><span style="line-height: 150%">实现</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">严格跨平台的</span><span style="line-height: 150%">layout</span><span style="line-height: 150%">实现以</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">优雅的</span><span style="line-height: 150%">HTML code</span><span style="line-height: 150%">，尽可能符合标准并有</span><span style="line-height: 150%">SEO</span><span style="line-height: 150%">的考虑因素。在任何平台、浏览器下基本保持一致。不要求了解各种</span><span style="line-height: 150%">CSS</span><span style="line-height: 150%">的</span><span style="line-height: 150%">hacks</span><span style="line-height: 150%">，但要求知道遇到问题应该如何查阅资料以在第一时间内解决。能够为</span><span style="line-height: 150%">JavaScript</span><span style="line-height: 150%">开发人员提供最好操作的</span><span style="line-height: 150%">DOM</span><span style="line-height: 150%">结构，让</span><span style="line-height: 150%">JS</span><span style="line-height: 150%">开发人员在开发的时候认为</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">一切都已经准备就绪了</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">，而不是</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">捉襟见肘</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">。</span></li>        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">JavaScript/Ajax/DOM<br />        a - </span><span style="line-height: 150%">基本的</span><span style="line-height: 150%">DOM</span><span style="line-height: 150%">操作，了解</span><span style="line-height: 150%">AJAX</span><span style="line-height: 150%">，可以实现数据通信</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">基本的</span><span style="line-height: 150%">DOM</span><span style="line-height: 150%">操作，能写高效率的</span><span style="line-height: 150%">OOP</span><span style="line-height: 150%">代码，以降低维护成本</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">基于需求，进行不同的开发，选择合适的框架，做到代码效率最高，用户体验最好，代码下载量最小，并且可以在单独甚至更多产品线中最大限度重用代码</span></li>        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Flash Developement<br />        a - </span><span style="line-height: 150%">基于</span><span style="line-height: 150%">Timeline</span><span style="line-height: 150%">的</span><span style="line-height: 150%">ActionScript</span><span style="line-height: 150%">操作，能实现简单交互</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">掌握</span><span style="line-height: 150%">a</span><span style="line-height: 150%">外，能实现数据层通信（与服务器以及本地</span><span style="line-height: 150%">SharedObject</span><span style="line-height: 150%">）</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">精通</span><span style="line-height: 150%">AS1-3</span><span style="line-height: 150%">，能根据需求进行各类</span><span style="line-height: 150%">RIA</span><span style="line-height: 150%">开发。无论是要求支持</span><span style="line-height: 150%">FlashPlayer8</span><span style="line-height: 150%">的，还是</span><span style="line-height: 150%">FlashPlayer9</span><span style="line-height: 150%">的，都能做到开发效率最高、灵活性最大（比如对</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">层的接口设计，等等）。</span></li>    </ol>    </li>    <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">【必备】</span></b><b><span style="line-height: 150%">Client-side (Desktop Application)</span></b>    <ol type="1">        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Apollo<br />        a - </span><span style="line-height: 150%">产品级的封装，基本技术了解（如何打包、如何加入</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">和</span><span style="line-height: 150%">JavaScript</span><span style="line-height: 150%">等）</span><span style="line-height: 150%"><br />        b - </span><span style="line-height: 150%">掌握</span><span style="line-height: 150%">a</span><span style="line-height: 150%">的同时，能利用</span><span style="line-height: 150%">Apollo</span><span style="line-height: 150%">的</span><span style="line-height: 150%">API</span><span style="line-height: 150%">独立设计、开发</span><span style="line-height: 150%">OS</span><span style="line-height: 150%">的文件</span><span style="line-height: 150%">I/O</span><span style="line-height: 150%">功能。</span><span style="line-height: 150%"><br />        c - </span><span style="line-height: 150%">掌握基本技能的同时，对</span><span style="line-height: 150%">&rdquo;3D</span><span style="line-height: 150%">概念体系</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">有所认知。这里</span><span style="line-height: 150%">&rdquo;3D&rdquo;</span><span style="line-height: 150%">即：</span><span style="line-height: 150%">Design</span><span style="line-height: 150%">（设计）、</span><span style="line-height: 150%">Development</span><span style="line-height: 150%">（开发）、</span><span style="line-height: 150%">Deploy</span><span style="line-height: 150%">（产品部署）。能用</span><span style="line-height: 150%">Apollo </span></li>        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Windows Presentation Foundation</span><span style="line-height: 150%">、</span><span style="line-height: 150%">WPF/E</span><span style="line-height: 150%">（</span><span style="line-height: 150%">Silverlight</span><span style="line-height: 150%">）</span><span style="line-height: 150%"><br />        </span><span style="line-height: 150%">（待定，欢迎补充）</span></li>    </ol>    </li>    <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">【增补】</span></b><b><span style="line-height: 150%">Server-side</span></b><span style="line-height: 150%">（修改：经考虑，这个技能不参与评级）</span><span style="line-height: 150%"><br />    </span><span style="line-height: 150%">本来列举了</span><span style="line-height: 150%">&rdquo;1</span><span style="line-height: 150%">、</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端简单的技术、脚本</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">和</span><span style="line-height: 150%">&rdquo;2</span><span style="line-height: 150%">、</span><span style="line-height: 150%">MediaServer</span><span style="line-height: 150%">（</span><span style="line-height: 150%">Red5</span><span style="line-height: 150%">）接口</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">作为</span><span style="line-height: 150%">&rdquo;<b>Web</b></span><b><span style="line-height: 150%">前端工程师技能列表</span></b><span style="line-height: 150%">&ldquo;</span><span style="line-height: 150%">的一种（服务器、数据逻辑层技能的）评判标准。但似乎很多朋友对于前端工程师是否应该掌握</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端技能的必要性表示怀疑。确实，要掌握好上述的展现层技能不是意见容易的事情，而且前端工程师的确非常辛苦。但是，站在另一方面来说，辛苦的原因是什么，我不知道在你日夜奋战</span><span style="line-height: 150%">div+CSS</span><span style="line-height: 150%">的时候思考过没有。就我的经验，前端的辛苦在于以下几个方面：</span></li></ul><div style="text-align: left; line-height: 150%" align="left">&nbsp;</div><ul type="disc">    <ol type="1">        <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">重复劳动多</span></b><span style="line-height: 150%">，大量的</span><span style="line-height: 150%">div+css</span><span style="line-height: 150%">都是重复的，即便可以复制粘贴，但几千行的</span><span style="line-height: 150%">div</span><span style="line-height: 150%">海洋中去寻找一个入口恐怕都非常痛苦</span></li>        <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">需求变更多</span></b><span style="line-height: 150%">，往往你折腾几个小时终于把跨平台问题解决好了，而且在</span><span style="line-height: 150%">IE6</span><span style="line-height: 150%">、</span><span style="line-height: 150%">7</span><span style="line-height: 150%">和</span><span style="line-height: 150%">Firefox</span><span style="line-height: 150%">下面都能显示同样的效果了，甚至连</span><span style="line-height: 150%">JavaScript</span><span style="line-height: 150%">交互都已经快搞定了。突然上面说需求要变。这无疑是莫大的痛苦。</span></li>    </ol></ul><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="line-height: 150%">也许表面上看，这跟</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端技能无关，但我觉得有好的</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端的意识，一定会有所帮助（当然不可能解决所有的问题）。毕竟信息结构和数据库是密切相关的，而</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">是连接数据库的唯一渠道（至少大多数</span><span style="line-height: 150%">B/S</span><span style="line-height: 150%">应用是如此）。掌握</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端的基本技能，对于同逻辑层开发人员设计接口是非常重要的。而且</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">表现层在开发时与数据的分离，也与</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端的各种模板技术有关。例如</span><span style="line-height: 150%">PHP</span><span style="line-height: 150%">中的</span><span style="line-height: 150%">Smarty</span><span style="line-height: 150%">模板（我曾经用的）、</span><span style="line-height: 150%">jsp</span><span style="line-height: 150%">的</span><span style="line-height: 150%">model2</span><span style="line-height: 150%">概念等等。</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">结构如何设计，如何让</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">重用，甚至在</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">层进行</span><span style="line-height: 150%">OOP</span><span style="line-height: 150%">的开发（我现在在新产品线中设计的前端开发流程），都需要</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端的支持。最起码，你要告诉</span><span style="line-height: 150%">php</span><span style="line-height: 150%">程序员你需要什么。如果你完全对</span><span style="line-height: 150%">PHP</span><span style="line-height: 150%">一无所知的话，那也无从谈起了。</span><span style="line-height: 150%"><br /></span><span style="line-height: 150%">此外，对于创业团队，往往人手非常有限。为了让运营成本降到最低，所有的技术人员都有义务对</span><span style="line-height: 150%">Server</span><span style="line-height: 150%">端技术有所了解。如果为了修改一个网页的标题还要跑去喊</span><span style="line-height: 150%">PHP</span><span style="line-height: 150%">程序员连接</span><span style="line-height: 150%">Remote Server</span><span style="line-height: 150%">的话，那实在是增加了整个公司的运营成本。</span><span style="line-height: 150%"><br /></span><span style="line-height: 150%">总结：我认为，可以不了解技术细节，但应该知道原理，最好能掌握一两套设计思想（毕竟数据逻辑都在这里走，光看</span><span style="line-height: 150%">HTML</span><span style="line-height: 150%">和</span><span style="line-height: 150%">JavaScript</span><span style="line-height: 150%">，对人的见识还是有局限的，这种局限限制了我自己很久的时间），那将是一比宝贵的财富。</span></div><ul type="disc">    <li style="text-align: left; line-height: 150%"><b><span style="line-height: 150%">【增补】</span></b><b><span style="line-height: 150%">Mobile-side</span></b><span style="line-height: 150%">（不参与评级）</span>    <ol type="1">        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Flashlite<br />        </span><span style="line-height: 150%">（待定，欢迎补充）</span></li>        <li style="text-align: left; line-height: 150%"><span style="line-height: 150%">Java</span><span style="line-height: 150%">？</span><span style="line-height: 150%"><br />        </span><span style="line-height: 150%">（待定，欢迎补充）</span></li>    </ol>    </li></ul><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="line-height: 150%">看到很多朋友留言说前端工程师没前途，我在想，同时掌握移动设备的技能是否也是拓展前途的一个必要性？这里再多说几句，关于技术人员的前途，目前在国内确实得用</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">惨淡</span><span style="line-height: 150%">&rdquo;</span><span style="line-height: 150%">来形容。浮躁的氛围让技术人才往往过早放弃了自己的技术生涯，而尔虞我诈的整体道德水平也让单纯的技术人员痛不欲生（我身边太多了，恩，不说具体细节了，呵呵）。</span></div><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="line-height: 150%">作为一个技术人员，开发人员，在保持纯粹地敬业心态（这是前提，这么没有，啥也别谈）外，更要学会如何保护自己，如何壮大自身，社会不会同情你，只有你自己才能保护你自己。</span></div><div style="text-align: left; line-height: 150%" align="left"><span style="line-height: 150%"><a title="【更新整理】Web前端工程师技能列表" href="http://www.awflasher.com/blog/archives/906"><font color="#0000ff">http://www.awflasher.com/blog/archives/906</font></a></span></div><div style="text-align: left; line-height: 150%" align="left">&nbsp;</div><div>&nbsp;</div>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/211.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=211</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=211&amp;key=f7faf1f5</trackback:ping></item><item><title>前端开发与网页制作:一直被混淆从未被厘清</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/210.html</link><pubDate>Thu, 03 Jun 2010 17:12:53 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/210.html</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;技术为王的年代，追逐领先技术已经不再是大学生等高学历群体的专利。就业难的当下，3G行业依然保持其旺盛的发展潜力，给经济危机笼罩的当下增添了喜色。 一些在就业市场边缘徘徊的大专生甚至高中生也跃跃欲试，希冀踏上3G的跳板摆脱学历带来的桎梏。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大专生和高中生的理论基础和实践经验相对来说都比较薄弱，他们将目标瞄向要求比较低的网页制作。殊不知当年的网页制作如今已经进化为前端开 发，由于前端开发这个名词相对比较陌生，很大一部分人将网页制作和前端开发混为一谈，所以当博看文思前端开发培训中心开设前端开发课程的时候，光解释这两 个名词就费了一大番周折。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果用一句话来解释前端开发与网页制作人员的区别，那就是前端开发解决的是一整套网站视觉优化方案，而网页制作人员解决的仅仅是网站视觉的部 分实现。如今的现实是，大部分前端开发人员都是从网页制作人员发展而来，所以当前端开发工程师的职位出现后，很多网页制作人员也纷纷打起了前端开发工程师 的旗号，其实两者之间的差别是巨大的。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前端开发属于人机交互的一部分，处理的是人与计算机、人与手 机之间传递、交换信息的媒介和对话接口的设计开发，通过严格的手写代码规范，以某种元素去实现用户想达到的任何界面效果。与网页设计相比，前端开 发要求知识面广，对技术理解相对较深，在具体的工作中具有总揽全局的能力。能力总是和待遇成正比的，前端开发与网页设计的差距自然反应在工作待遇上也是天 壤之别。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前端开发的兴起也让不少大专生和高中生纷纷放弃了网页设计，投奔到前端开发的门下。随着网 络、计算机硬件设施的不断提升，我们正在朝着客户端的方向前进。以用户为中心的设计，都离不开前端开发。在我国，前端开发 工程师是一个新兴名词，2005年国内才首次出现前端开发工程师这个职位。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前端开发工程师在我国的地位慢慢受到重视，但国内与国外的差距依然非常大。美国等技术先进国家前后端人员的比例为1：1，而在我国国内目前依 旧在1：3以下。3G时代的到来，各行业领域的网站几乎都要移植到移动互联网上，可以预料未来几年国内对前端部分将会有大量的人才需求。而前端开发工程师也会日益受到重视，前端开发 工程师的地位也会越来越高。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前端开发工程师职位炙手可热，催活了前端开发培训市场。在3G培训机构中，很多都开始设置前端开发课程。然而前端开发与网页制作概念界定的模 糊，也让不少培训机构钻了空子。打着前端开发的旗号，讲的却是网页制作的课程。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&ldquo;这些培训机构并非不愿意讲前端开发课程，而是没有能力讲前端开发&rdquo;，智联招聘的某资深前端开发工程师说。原来，学好前端开发课程，需要的不 仅仅是理论知识，更需要大量的项目研发经验。而让普通的前端开发培训机构为学员提供实际项目，实属是强人所难。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;然而，能够为学生提供实训项目的前端开发培训机构也并非没有。据网友爆料，博看文思前端开发培训中心就能够为实习生提供大量的项目开发实践， 博看文思的实习生就曾为Discovery Channel、法国电信、Mozes、美国商会等知名企业提供一站式的前端解 决方案。看来要诚心找，能够真正学会前端开发的地方还是有的。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对于大专生、高中生等低学历群体，曾经因为一纸文凭被挡在就业的大门之外。前端开发课程的设置，拉近了大专生、高中生与3G开发殿堂的距离。 难料半路杀出网页设置，真假李逵难辨，参加前端开发培训的学员走进了迷宫。还是真诚提醒想要参加前端开发的学员，凡事认真辨别，莫误打误撞耽误了前程。</p>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/210.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=210</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=210&amp;key=c436fa81</trackback:ping></item><item><title>网页设计心理学</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/209.html</link><pubDate>Thu, 03 Jun 2010 15:51:32 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/209.html</guid><description><![CDATA[<p>大部分设计师没有花时间去学习基本的心理学原则是怎么样影响他们网站用户的体验。心理学原则很多时候被认为是可有可无，或者过于复杂的。但事实是， 这些想法都不对。并没那么多的概念与基本设计心理学相关，而且大多数是相对简单的，很容易学习。设计心理学还是比较容易实现的，虽然有些相对来说需要用多 一点细心和规划。</p><h3>基于心理学设计的目的</h3><p>在设计过程中考虑到心理学会带给你一个积极意义的最终结果。如果你花时间去分析一下你的访客的需要， 他们怎么样才能满足他们需要，那么你已经在走上了设计网站的道道，这将为你的目标受众注入源源不断的心理动力。</p><p>通过访客心理分析，你 得到的结果是访客更开心乐意的做你所希望他们做的事情，比如保持与你联系，买你的产品，或者推荐给他的朋友们。</p><p>你希望访客更容易的跟 着你的意愿走，这就是设计中要运用心理学的主要原因。</p><h3>建立信任关系</h3><p>要你的访客做你 所想他们做的，首先你得跟访客建立信任关系。信任关系并不容易，尤其是这个骗子横行的时代，让人讨厌的人在网络哪个角落都有一大把。那些对网络还不是太熟 悉的用户，如果谁问他们一些个人信息都会变得十分敏感，也不管这些信息对网站工作是很需要的。</p><p>作为网站类的设计师，我们往往忽略自 己已经是习惯了网上交易。但是对于我们的客户，还有他们的客户，互联网仍然是一个他们正要进入的很大很可怕的黑洞。</p><p>认识到这一点，你 再使用设计心理学，使你的网站即使一般用户看起来也觉得更值得信赖。创建一个使访客用户安心的网站，就意味着他们很可能会注册一个帐户，并且购买产品，或 者用其他方式和你做生意。这些可以通过网站设计和语言来达到。</p><h3>熟悉和识别模式</h3><p>当一个用户访问网站的某个页面，一 定是有某些东西他们想马上看到的，不管登录的是一个什么网站。</p><p>如果他们没有看到预期的东西，他们会觉得乱七八糟毫无意义（所以，这 网站不可靠）。</p><p>访客来到一个网站，对网站来说所期待有最重要两点，一是来访的目标内容（这可能是某些主题信息上看到在售的某个漂亮 的产品），二是要有些导航。</p><p>虽然标签可以帮助辨识的目的，设计还应该补充和加强这一消息。比方说，例如，你正在设计一个环境主题的 博客。如果你的设计看起来黑色和寂静又阴沉，并在页头一个夕阳西下的城市天际线。这样很不好，甚至没有正确的暗示一下这个网站是干什么的。</p><p>而如果一个网站看起来很干净很现代，有些绿色和自然的口号，这就给人一个深刻的印象，这是一种环境保护主题的博客。</p><p>除了一些在任何一个网站都能找到的信息元素，还应该有一些特别的东西，这些是访客在某种特定的类别或者行业的网站期望看到的。人们期待博文放在博客的首 页，期望电子商务网站的头版都放产品。对于任何网站人人都期望在超过了几个深度的页面便会提供一个搜索功能。而且在大多数情况下，人们还期望有&ldquo;关于我 们&rdquo;和&ldquo;联系我们&rdquo;的页面。</p><h3>品牌统一</h3><p>除了大多数访客希望看到一个网站所必备的基本要素，还应该有些东西吸引用户跟你公司联系。虽然这可能不是一单生意，或者是吃一个小生意，但这说明很多人都 在关注。</p><p>想想你设计的一些的线下的促销宣传单的颜色。这些颜色应该某种程度上融入你的网站在，即使它只是在标题图片或或者一些标识口号的颜色。</p><p>如果你在宣传资料上印有Logo，那也一样，在网站上你也要同样的呈现。这是很基本的事情，但是很多企业往往忽略了这种线上线下的一致性。</p><h3>心 理激发</h3><p>心理和情感激发是鼓励用户付诸行动一个的宝贵工具。激发包括像内疚和担心的这样的情绪，当然还包括吸引人的那种归属感和人的价值观念认可。</p><p>在设计中结合激励性情绪的通常做法是如果网站上的广告语言，再加入一些图形元素作为辅助支持，使用图片和图表加强激励效应。</p><h3>图像强化 概念</h3><p>你在网站上使用的图片会帮助也会混淆你的访客。一个精心挑选的图片可以令你访客心领神会，了解你明显不过的意图。如果选择不慎，甚至会让你的访客很抓狂， 让他们感觉到又回到了乱七八糟的黑暗时代。</p><p>这张迪斯尼世界河马照片绝对与 本文章毫无关联，放这里只会让你莫名其妙。</p><p>抽象的图像有时也有意想不到的效果，不过请小心使用，确保放在那里有它的意义。 有时，一个抽象的图形在不同的访客那里会有不同的解读，或将会完全误解原本的含义。</p><h3>颜色心理学</h3><p>颜色心理学是设计心理学里面最复杂的主题，在这里我们不会深入探讨。不过你在网站上使用的颜色对你的访客来说有很大的影响，务必确保你所使用的颜色可以 加强你的信息和你图片所要表示的意义。</p><p>下面列出颜色和它们的基本含义清单。当然了，颜色的组合搭配以及与正确使用阴影，色调，或色阶也会强化它们的意义。</p><h4>红色</h4><p>火 热和激情，可以代表都爱和愤怒。</p><h4>橙色</h4><p>具有红色和黄色的属性。可以与能源和温暖相关。它比红色更冷静，更愉快。</p><h4>黄色</h4><p>温暖，愉快，幸福的颜色。它可以表示喜悦或胆怯。</p><h4>绿色</h4><p>自然，成长，和新生的标 志。按照同样的道理，绿色，有时代表很嫩经验不足。在另一面，绿色，有时候是因为羡慕或嫉妒。</p><h4>蓝色</h4><p>平静的，冷静 的，但使用太多可以令人感到消沉。往往与企业形象关联。</p><h4>紫色/紫罗兰</h4><p>与贵族和财富的关系渊源流长，也是一种与精神 相关的颜色，可以有创造性的表意。</p><h4>黑色</h4><p>像变色龙，它可以是保守或前卫，传统或现代的，它还可以神秘和性感或常规和 安全，这取决于怎么使用以及周围环境。</p><h4>白色</h4><p>代表着纯洁与清白，十分容易与其他颜色搭配。</p><h4>灰色</h4><p>中性的，平衡的。灰色是保守的和复杂的，但也可以看作是变化无常的。</p><h4>棕色</h4><p>一个健康和务实的颜色，表示的稳 定性和可靠性。</p><h3>阅读模式</h3><p>人们趋与按照&ldquo;Z&rdquo;字形浏览一个网站的模 式，从顶部开始往左，最后到达屏幕右下角。作为一个设计师，你应该努力地在此阅读模式下拿捏好那些最重要的内容放哪里最好。大多数网站都把Logo放到左 上角，道理就在于此。</p><p>在此阅读区放置一些不相关的信息，访客离开之前还没有找到他想要的信息，他可能会认为这不是他要找的网站。</p><h3>每页有焦点</h3><p>网站上的每个页面都应该有一个焦点，这是访问这个页面的目的，且不管这个页面是展示产品， 还是介绍公司，还是最新的资信。</p><p>设计的时候需要把每个页面重点内容进行强调。每一页的重点也应立即显现出来，让访客知道他们在看什 么。除了网页本身的内容，还应该通过在导航线索或通标题来强化。</p><p>一个不成熟的网站最大特点就是总是在每一页上放太多的信息。其实不要 害怕在网页上的留空白， 每个页面上有明确的突出的重点并没什么好担心的。</p><h3>喘息机会</h3><p>这给我们带来的留白和喘息机会的概念。如果访客看到一个页面充满内容，他们会感到不知所措或压抑。这可能是网页让人感到过于随意和混乱。访客感到好像他们 不知道从哪里开始，这意味着他们可能会跳出你网站到其他地方喘口气。</p><p>网站上的合理留些空白空间，引导你的访客注意他们要找的信息。通过结合留白和适当比例的风格和元素，你可以暗示鼓励你的访客关注特定的东西，并可能有所 行动。</p><h3>整合设计心理学的步骤</h3><p>现在你应该明白设计心理学对网站设计的意义。你很想知道怎么去操作，应该怎么将这些融入你的设计流程。以下是一些对你有用的技巧：</p><h4>圈出 你的目标用户群</h4><p>了解你的访客是什么样的人，这是设计网站至关重要的第一步。如果你的访客是精通技术的互联网老油条，必须先把他们 从那些上网只为了看看孙女儿照片的人群区分出来。分出你的目标用户，然后针对性的给他们制定一些情绪激烈策略。</p><h4>约见用户</h4><p>如 果你不是很明确你的用户想要什么，尝试和他们见面沟通。找些现在的或以前的客户问下他们愿不愿意回答对你网站相关的问题， 根据你自己的特别目的制定一些基于网站的有意义的问卷调查。不过很重要的一点，要积极采取他们的建议。很多公司只是不停的跟用户沟通，调查，但是却从没有 去根据调查结果改变什么，这样的例子太多了。</p><h4>建立网站地图</h4><p>网站上的每个页面都应该有导航信息，这样可以确保每个页 面都只有一个重点。首先列出你网站上需要显示的东西，然后标出哪些页面需要显示哪些项目（合理情况下，应该是每个页面一个项目，除非这信息非常，非常密切 的相关）。</p><h4>整合品牌元素</h4><p>做个文件列出用于表现你品牌的常用的元素。这包括Logo，企业用色表，还有可能是一种特 别的字体。然后找出把它们布置到网站的哪里更合适。</p><h4>A/B测试</h4><p>即使你做的测试相当有限，但是找出你网站哪个元素最 有效还是很重要的。如果你不确定你访客更喜欢某一个特定的页面，那么做两个版本测试就知道结果了。</p><p>设计心理学 值得每一个设计师努力学习并运用于自己的工作流程。它可以是你设计表现效果以及你的客户乐意程度的最大单独因素。它不会花费你太多时间，也不是特别难，所 以你实在没籍口不去采取至少一些基本的原则并付诸实用。</p><p>来源：<a href="http://www.webdesignerdepot.com/2010/05/the-psychology-of-web-design/" target="_blank"><font color="#0064b1">webdesignerdepot</font></a></p>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/209.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=209</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=209&amp;key=5574e2e3</trackback:ping></item><item><title>被政府刑讯逼供的犯人，都曾经是他们的衣食父母。农民犯人交过公粮，工人犯人交过税！！怒~~~</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/208.html</link><pubDate>Fri, 28 May 2010 15:51:11 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/208.html</guid><description><![CDATA[<p>被政府刑讯逼供的犯人，都曾经是他们的衣食父母。农民犯人交过公粮，工人犯人交过税！！怒~~~</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 刑讯逼供是指司法工作人员采用肉刑或变相肉刑折磨被讯问人的肉体或精神，以获取其供述的一种极恶劣的审讯方法。中国刑事诉讼法第43条、最高人民法院关于执行《中华人民共和国刑事诉讼法》若干问题的解释中第61条、人民检察院刑事诉讼规则第140条等法律条文均有明确规定禁止刑讯逼供，但在司法实践中，刑讯逼供仍普遍存在。这是与建设社会主义法治社会的目标背道而驰的。</p>]]></description><category>时事动态</category><comments>http://www.zhangmeigong.cn/post/208.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=208</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=208&amp;key=32d261c7</trackback:ping></item><item><title>张美工点评 “新捷达”广告</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/207.html</link><pubDate>Mon, 24 May 2010 11:04:41 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/207.html</guid><description><![CDATA[<p><span style="color: black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;捷达车以&ldquo;皮实耐用&rdquo;早已在国人心目中树立起其经典形象，如今，</span><span style="color: black"><a target="_blank" href="http://auto.315che.com/Jetta/"><span style="color: black; text-decoration: none; text-underline: none">捷达</span></a></span><span style="color: black">又要进行</span><span style="color: black">&ldquo;</span><span style="color: black">第三次</span><span style="color: black">&rdquo;</span><span style="color: black">改款，可能不大关心车市或者不关于这个车型的人都不会在意，但<a target="_blank" href="http://www.zhangmeigong.cn"><span style="color: #3366ff">张美工</span></a>提醒一下，可能大家一定有所印象：&ldquo;甜蜜蜜，你笑得甜蜜蜜，好象花儿开在春风里</span><span style="color: black">&hellip;.</span><span style="color: black">&rdquo;一进入耳朵的是<a target="_blank" href="http://www.zhangmeigong.cn"><span style="color: #3366ff">邓丽君</span></a>温婉而甜的歌声，几句之后伴随着节奏一阵清脆的口哨声，说到这里大家一定有所顿悟：</span></p><div style="text-indent: 21pt"><span style="color: #800000">&ldquo;哎！别说还真有点儿<span style="color: #800000">印象</span>&rdquo;</span></div><div style="text-indent: 21pt"><span style="color: #800000">&ldquo;嗯，是，有这么一个片段，好像是捷达的广告&rdquo;</span></div><div style="text-indent: 21pt"><span style="color: #800000">&ldquo;具体什么广告没太留意，不过这个歌儿倒是有印象&rdquo;</span></div><div style="text-indent: 21pt"><span style="color: black">&nbsp;&nbsp; &hellip;<br /></span></div><div><span style="color: black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><strong><span style="color: black">在这里张美工不是为捷达做广告，而是来说说这个广告的创意：</span></strong></div><div style="text-indent: 21.75pt"><strong><span style="color: black">画面一、</span></strong><span style="color: black">广告一出来是副黄旧的片段，漂亮的妈妈哼着温婉的甜蜜蜜小调，小孩带着快乐的笑容小脸向车外望，这个时候的街道上多得是自行、三轮车，老捷达鹤立鸡群</span><strong><span style="color: #3366ff">&hellip;</span><span style="color: #3366ff">----（在中国早期发展中捷达已经在为百姓服务了。）<br /></span><span style="color: black"><br /></span></strong><span style="color: black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><strong><span style="color: black">画面二、</span></strong><span style="color: black">甜蜜蜜的哼曲接成为清脆的口哨，并伴随着欢快的自行车铃声，时光在穿梭，当年的小孩已经成为高校学生，并有着甜蜜的爱恋，骑在小路上</span><span style="color: black">&hellip;&nbsp; </span><strong><span style="color: #3366ff">----（因为有爱，有信赖，所以才能连接彼此）<br /></span></strong><span style="color: black"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><strong><span style="color: black"> </span><span style="color: black">画面三、</span></strong><span style="color: black">当年一对恋人骑车的小路上已经有崭新的变化，这里从小路的那端驶来一辆全新的捷达，而甜蜜蜜清脆的口哨已经接为捷达车音响的</span><span style="color: black">CD</span><span style="color: black">播放，车里坐着的正是当年一对小恋人</span><span style="color: black">&hellip; </span><strong><span style="color: #3366ff">----（年轻人通过一番努力有了自己的发展，同时捷达也有自己的创新。）<br /></span></strong><span style="color: black"><br /></span></div><div style="text-indent: 21.75pt"><strong><span style="color: black">画面四、</span></strong><span style="color: black">温馨的一家三口在全新的捷达里享受着甜蜜蜜</span><span style="color: black">&hellip; </span><span style="color: #3366ff"><strong>----（时代在发展，捷达在也不断提升品质）<br /></strong></span><span style="color: black"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong><span style="color: #ff0000">》</span></strong> </span><span style="color: black">这则广告中将两代人开着的新、旧捷达放在画面中，而且又恰到好处地将新捷达新特征、新功能做了车内、车外的特写，更多的表达是这款车已经成为家庭的成长，时代前进的<strong>见证</strong>，做了很深的<a target="_blank" href="http://www.zhangmeigong.cn"><span style="color: #3366ff">用户体验</span></a>。</span></div><div style="text-indent: 21.75pt"><span style="color: #ff0000"><strong>》</strong></span><span style="color: black">广告给人更多的<strong>温馨</strong>，更紧的扣在百姓心上，他们更深地将车与人与家庭温情结合起来。甜蜜蜜的歌曲从哼唱到口哨到车音响的播放，衔接完美贯彻始终，向天天在钢筋水泥里高速运转的人们吹来了一丝丝的温情。张美工就是在结束了一天的紧张工作后在电视旁想创意时，这则广告飘了进来，顿时每一个神经都放松了。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000"><strong>》</strong></span>而且这则广告也有<strong>激励年轻人</strong>奋进的情节，生活很美好，我们可以通过自己的努力来创造自己更美好的生活，张美工在想现在正在奋斗的小恋人、小夫妻看到这则广告也一定会有心的鼓舞，他们一定会指着画面中小两口骑自行车过去又开着新捷达车回来的片段，说：<span style="color: #ff00ff"><em>&ldquo;老公，我们也要像他们一样，努力奋斗成为有车有房的人....&rdquo;</em></span>（设计旁白）</span></div><p>&nbsp;</p>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/207.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=207</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=207&amp;key=140f5bf7</trackback:ping></item><item><title>良心建站</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/206.html</link><pubDate>Mon, 14 Dec 2009 14:48:47 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/206.html</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;相信全世界万千网站的站长，在建站之初都或多或少有一些需求。而一个站可以解决或暂缓这份需求。例如：<a target="_blank" href="http://www.zhangmeigong.cn">张美工</a>的<a target="_blank" href="http://www.zhangmeigong.cn">网站用户体验站</a>。建站初就是因为一直都对网站的友好性充满好奇，经常摆弄着一些小小的道具：</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;如果这个搜索的小按钮放大一个PX是不是会更能引起浏览者的注意；</strong></p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个BUT在最下面放一个是不是更方便用户使用；</strong></p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这一段文字会不会太多影响用户阅读的心情啊？我是不是应该给出重点与次重？</strong></p><p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个项目里有好几处的方法是几经琢磨的，要做好备录，可是放在哪里又不会掉，又方便我用呢？</strong>这个时候一草根英雄提醒说：&ldquo;建个站啊，所有问题迎刃而解。&rdquo;&nbsp;&nbsp; 茅塞顿开！</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自此，网站用户体验 屹立于众网站之林，在谷歌和百度排名一路遥遥领先，PR也与日俱增。这个时候好多朋友奇怪的问题：&ldquo;张美工，你的站PR 流量都不错，各大引擎收录的也很好，为什么不放广告呢？&rdquo;这个问题问的好，打开如星星多般的网站有如星星般多的放了&ldquo;非&rdquo;广告。我不是自清高，建站长亦凡夫俗子，吃住也！但取之要有道。无论如何不能在我的网站用户体验站上放&ldquo;非&rdquo;广告，我管不了其它人但我可以维持自己的一片净土。现在社会上青少年犯罪率日益增长，他们是违犯了社会的法律，但也只有他们受牢狱之灾。凭什么？？那么引导他们走向歪路的&ldquo;人&rdquo;呢？他们为什么却只受道德的谴责。不公平！大大的不公平！！青少年是祖国的花朵是未来的栋梁。我们应该力所能及的对于青少年于以保护才是。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我相信UE的研究是神洁的，它为我们技术的道路启了很大我推动，我们不能变质它。希望有更多的站长维持出一片净土，让我们的网络空间更加的洁净，让我们的后辈们有更好的学习和研究环境。张美工希望更多的站长都能发动起来，网络扫黄！网络扫非！</p>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/206.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=206</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=206&amp;key=89145712</trackback:ping></item><item><title>前端开发工程师的定义</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/205.html</link><pubDate>Thu, 12 Nov 2009 16:33:01 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/205.html</guid><description><![CDATA[<p><strong><em><span style="color: #339966">献给默默努力着的前端开发工程师们，他们有&ldquo;名分&rdquo;了</span></em></strong><em><span style="color: #339966">！</span></em></p><p>&nbsp;&nbsp;&nbsp; &nbsp;web2.0思想的日益普及，让企业都慢慢认识到前端的重要性。前端开发人员的地位也日益提高，相应的技术要求要是越来越高，这对前端开发人员来说确实是一个天大的好事。&nbsp;<br />&nbsp;&nbsp;&nbsp; &nbsp;<strong>究竟什么是前端开发工程师？</strong>好像这个词已经被用过好长时间，但是一直都没有一个明确而又权威的定义，在第三届D2前端技术论坛上，淘宝的UED圆心给了前端开发工程师这样的一个定义：<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1：与交互设计师、视觉设计师协作，根据设计图完成页面制作。|<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2：维护及优化网站前端性能。同时他还定义了高级前端开发工程师：<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 使用JavaScript|ActionScript编写封装良好的前端交互组件。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. 对Web项目的前端实现方案提供专业指导及监督。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. 对新人及相关开发人员进行前端技能培训。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. 设计并实施全网前端优化。</p><p>&nbsp;&nbsp;&nbsp;&nbsp; 淘宝UED的定义可以说是少有的比较完备的定义了，通过要干什么工作来对这个职位进行了定义。（虽然有一个&ldquo;2：维护及优化网站的前端性能&rdquo;应该是&ldquo;维护及优化前端的性能&rdquo;，因为毕竟还是有大量的B/S前端开发人员存在的。）</p><p>&nbsp;&nbsp;&nbsp;&nbsp; 在同一届论坛上，土豆的前端开发人员李戎，列出了土豆的工作流程图：</p><p>&nbsp;<img alt="" src="http://www.zhangmeigong.cn/upload/2009/11/image001.jpg" /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大部分公司的工作流程都应该是类似的，这个李戎十分让我佩服，他用这个图来表明前端的定义和职责。谁也不能挑出不对的地方。图片比文字更能清楚的表达意思。由此也可见一斑。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 合理的公司架构，前后端应该是对立的两个部分，而不是单纯的页面制作，前端开发也应该要了解整个项目的架构，在用户体验的设计方面比后台更有发言权。对于网站前端来说，SEO等技能更是必不可少。而不是要专门的SEO人员，一个连DIV+CSS都不精的单纯SEO在我看来完全是扯淡。ps的使用也是前端开发人员必备的技能之一，一个视觉设计人员，一个美工，不可能有很好的页面制作思想。很多图片的切图并不是最好的；更重要的背景图片的合并直接跟CSS的使用及标签的层叠嵌套相关，跟页面的实现思想相关。只有这几个技术都熟练到一定的程度，才可能出来代码最精简、最美观，页面loading最快的页面。</p><p>&nbsp;&nbsp;&nbsp;&nbsp; 而DIV+CSS+JS/AS,应该是前端开发的看家本领了。<br />&nbsp;</p>]]></description><category>css+div</category><comments>http://www.zhangmeigong.cn/post/205.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=205</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=205&amp;key=a08ac060</trackback:ping></item><item><title>交通  理解  用户体验</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/204.html</link><pubDate>Thu, 05 Nov 2009 14:22:42 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/204.html</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;整个世界面积除去海洋，就剩陆地，而这陆地上住房和耕地之外就是路了，路，大大小小的、宽宽窄窄的，所有的人为了生计来回地奔波在路上。随着车辆的激增，随着时代步伐的加剧，催促着人们大大的加快了自己的步子，在这前行的过程，人们在路上付出，人们在路上回报，路在创造人的财富的同时也会给人带来警示。政府为了充当公仆，在路旁树立了大大小小的牌子，上面都是这样写着<span style="color: rgb(255, 0, 0);">：&ldquo;禁止疲劳驾驶&rdquo;、&ldquo;禁止酒后开车&rdquo;、&ldquo;禁止...&rdquo;</span>人都是很贱的高级动物，越是不让做的越想做，越劝阻他还越反感。接着，大大小小的媒体、报纸、网络新闻就会日复一日地公布着：&ldquo;某某路段，发生了严重的交通事故，经警方调查，某方司机血液中的酒精含量严重超标....或某司机在此事故之前已经连续驾驭竟达N个小时....&rdquo;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个时候，交通秩序严重紊乱，人民财富严重损失，出事家属&ldquo;头上&rdquo;天塌地陷...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在经过N多年N多次的血的教训之后，政府放下&ldquo;将军&rdquo;的身份，以极大亲和力来宣传<span style="color: rgb(51, 153, 102);">：&ldquo;司机一滴酒，亲人两行泪&rdquo;、&ldquo;三双筷子三只碗，爱妻娇儿盼团圆&rdquo;</span>。人们虽然在骨子深藏着叛逆，但看这样样的话，眼前呈现的亲爱的父母，妻子、可爱的儿女，亲切的脸庞、急盼的眼神，内心一定是深深打动。不自觉地放慢了步子。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个时候我们明白了，将军的命令没有带有亲和力的话作用大。这就叫理解。<strong>理解内心想要是什么，采取向其缺渴的方向前进就会取得很好很大的效果。</strong>用咱们网站上官面的话来说这种方法就是<a target="_blank" href="http://www.zhangmeigong.cn">&ldquo;UE--用户体验</a>&rdquo;! <span style="background-color: rgb(204, 255, 204);">理解用户所想的所要的。以用户的身份去做我们的工作，这样的结果必定是最适合用户需要的、也会有很好的收益!</span><strong>这是我们创意之初、制作之本！</strong></p>]]></description><category>用户体验</category><comments>http://www.zhangmeigong.cn/post/204.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=204</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=204&amp;key=b3ee1974</trackback:ping></item><item><title>关于右对齐在各种定位下的写法</title><author>a@b.com (张美工)</author><link>http://www.zhangmeigong.cn/post/203.html</link><pubDate>Thu, 05 Nov 2009 10:35:28 +0800</pubDate><guid>http://www.zhangmeigong.cn/post/203.html</guid><description><![CDATA[<p><strong>问题：<span style="color: #ff0000">想要将元素和它的内容与其父元素或定位最近的祖先元素右对齐。</span></strong><span style="color: #ff0000"><br /></span><strong>解决方案：<span style="color: #339966">此设计模式在每一个步骤上都与左对齐模式对称</span><span style="color: #008080">。<br /></span></strong><span style="color: #008080"><br /></span>&nbsp;&nbsp;&nbsp; <span style="color: #0000ff"><strong>--</strong></span>&middot;要将内容右对齐，则把text-align:right赋给包含的块状元素。</p><p>&nbsp; &nbsp; <span style="color: #0000ff"><strong>--</strong></span>&middot;要创建一个右对齐的<strong>设定尺寸</strong>的元素，可以使用<span style="color: #ff00ff">width:+value</span>来设定它的尺寸。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;可以使用marign-right:0将它右对齐，用<span style="color: #ff00ff">margin-left:auto</span>阻止它左对齐。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;对于一个<strong>绝对定位</strong>元素，也可以使用<span style="color: #ff00ff">right:0</span>来使元素右对齐，用<span style="color: #ff00ff">left:auto</span>来阻止它左对齐。<br /><br />&nbsp;&nbsp; <span style="color: #0000ff"><strong>--</strong></span>&middot;要创建一个右对齐的<strong>拉伸</strong>的元素，<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以使用<span style="color: #0000ff">width:auto</span>、<span style="color: #0000ff">margin-left:0</span>和<span style="color: #0000ff">margin-right:0</span>来拉伸它的宽度至容器的左右端。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对于一个<strong>绝对定位</strong>元素，也可以使用<span style="color: #0000ff">left:0</span>和<span style="color: #0000ff">right:0</span>来拉伸它至左右两侧。<br /><br />&nbsp;&nbsp; <span style="color: #0000ff"><strong>--</strong></span>&middot; 要创建一个右对齐的<strong>包裹</strong>的元素，<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以使用<span style="color: #ff6600">width:auto、left:auto<span style="color: #000000">和</span>margin-left:auto</span>来设定包裹宽度。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可以使用<span style="color: #ff6600">right:0<span style="color: #000000">和</span>margin-right:0</span>将它右对齐。<br /><br /><strong>模式：<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对设定尺寸的<span style="color: #993300">静态块状</span>元素右对齐</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; block-selector &nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:static;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align:right;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:+value;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-left:auto;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-right:0; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>对拉伸的静态块状元素右对齐<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; block-selector {&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:static;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-align:right;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:auto;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-left:0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-right:0; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong> 对设定尺寸的绝对定位元素右对齐<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selector {&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:abslute;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align:right;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:+value;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left:0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-left:auto;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right:0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-right:0; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>对包裹的绝对定位元素右对齐</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selector {&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:absolute;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align:right;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:auto;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left:auto;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-left:auto;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right:0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-right:0; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong> 对拉伸的绝对定位元素右对齐<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selector {&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position:absolute;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align:right;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:auto;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left:0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-left:0;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right:0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin-right:0; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><span style="color: #ffffff"><span style="background-color: #ff0000">适用范围：此模式适用于所有元素。<br /></span></span><br /><span style="background-color: #800080"><span style="color: #ffffff">局限：被拉伸的绝对定位模式不适用于IE6，但适用于IE7。&nbsp;</span><br /></span>&nbsp;</p>]]></description><category>css+div</category><comments>http://www.zhangmeigong.cn/post/203.html#comment</comments><wfw:comment>http://www.zhangmeigong.cn/</wfw:comment><wfw:commentRss>http://www.zhangmeigong.cn/feed.asp?cmt=203</wfw:commentRss><trackback:ping>http://www.zhangmeigong.cn/cmd.asp?act=tb&amp;id=203&amp;key=7ea818c8</trackback:ping></item></channel></rss>
