标签:xhtml

浏览模式: 标准 | 列表 | 图文

收藏:21个PSD转为xhtml的教程

最近一直在关注一些好看的xhtml页面,主要是也在考虑是否能够自己切图自己折腾这些页面。
想着以前的页面都是让小茗帮我切的,最近他没什么空,再说了也不能一直麻烦他所以只能自己学点东西了。
也叫瘦子帮我切过,但,总归不能老是麻烦他们。当然强哥切的也非常好,只是强哥很忙,当然不能麻烦他喽。。

所以我看到有这些教程后,就先备份下来,慢慢学。来自:http://www.cnblogs.com/lhb25/archive/2011/04/22/2016584.html

1- Convert a PSD to XHTML

How to Convert PSD to HTML

查看教程

2- The Design Lab: PSD Conversion

How to Convert PSD to HTML

查看教程

3- Building a Set of Website Designs Step by Step

How to Convert PSD to HTML

查看教程

4- Encoding a Photoshop Mockup into XHTML & CSS

How to Convert PSD to HTML

查看教程

5- Coding: Design Lab TV Styled Layout

How to Convert PSD to HTML

查看教程

6- Design and Code a Slick Website from Scratch

How to Convert PSD to HTML

查看教程

7- Slice and Dice that PSD

How to Convert PSD to HTML

查看教程

8- Coding a Clean Web 2.0 Style Web Design from Photoshop

How to Convert PSD to HTML

查看教程

9- Minimal and Modern Layout: PSD to XHTML/CSS Conversion

How to Convert PSD to HTML

查看教程

10- How to Code up a Web Design from PSD to HTML

How to Convert PSD to HTML

查看教程

11- Build a Sleek Portfolio Site from Scratch

How to Convert PSD to HTML

查看教程

12- Coding Your 1st PSD Tutorial

How to Convert PSD to HTML

查看教程

13- Site Build

How to Convert PSD to HTML

查看教程

14- DesignSchool Coded, Free CSS Template With PSD to HTML Tutorial

How to Convert PSD to HTML

查看教程

15- Fixed Footer Backgrounds with CSS

How to Convert PSD to HTML

查看教程

16- Converting a Design From PSD to HTML

How to Convert PSD to HTML

查看教程

17- Portfolio Layout 4: The Code

How to Convert PSD to HTML

查看教程

18- Learn To Code It

How to Convert PSD to HTML

查看教程

19- Creating a CSS Layout from scratch

How to Convert PSD to HTML

查看教程

20- Converting a Photoshop Mockup

How to Convert PSD to HTML

查看教程

21- PSD > HTML/CSS

How to Convert PSD to HTML

查看教程

(编译来源:梦想天空 原文来自:How to Convert PSD to HTML (20+ Tutorials))

--EOF--

CSS让你的IE浏览器崩溃

CSS让你的IE浏览器崩溃

真的从来没有想过,CSS也能够让浏览器崩溃,看到本文的时候,说老实话是吃了一惊。好意外啊。
在测试了几个链接后才发现,现实是残酷的。。让我们看原文吧。

原文地址:

严格来说不单是CSS就能令IE浏览器崩溃(crash),而要配合相应的XHTML架构。到现时为止发现有两种正常写法及一种错误结构分别导致会 IE6、IE7崩溃(crash),至于原因我尝试寻找过答案但至今还没找到…如你有这方面的认识或更详细的资料很希望你能分享!

1 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6.html

此BUG只存在IE6中,当伪类为 a:active 时同样会遇到此问题

<style type="text/css">
a{position:relative;}
a:hover{float:left;}
</style>

<a href="">崩溃IE6 ,crash ie6</a>

解决方案:为 <a> 添加 zoom:1; 令其触发haslayout

<style type="text/css">
a{position:relative;zoom:1;}
a:hover{float:left;}
</style>

2 crash IE6 code

这是HTML结构错误而导致IE6的崩溃,在<col width="100"/>前或后添加任何字符均会导致IE6 Crash

Demo:http://blog.gulu77.com/demo/200808/HTML_errors_crash_ie6.html

<table style="table-layout:fixed;">
<colgroup>
<col width="100"/>Crash IE6
</colgroup>
</table>

Bug from yoogisa http://forum.standardmag.org/viewtopic.php?pid=14282#p14282

3 crash IE7 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie7.html

Bug from 偷米饭,此bug只存在IE7中据估计是处理省略字的时候导致IE7崩溃.

<style type="text/css">
div{float:left;width:175px;}
ul{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
li{position:relative;}
</style>

<div>
<ul>
<li>崩溃崩溃崩溃崩溃崩溃crash ie7</li>
<li>崩溃崩溃崩溃崩溃崩溃crash ie7</li>
</ul>
</div>

解决方案:为 <li> 添加 zoom:1; 令其触发haslayout

<style type="text/css">
div{float:left;width:175px;}
ul{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
li{position:relative;zoom:1;}
</style>

4 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6_test1.html
当再次改变定位时浏览器崩溃,但似乎也需要N个帮凶才会导致崩溃的代码中CSS table的相属性都缺一不可。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CRASH-IE,CSS让你的IE浏览器崩溃</title>
<style type="text/css">
html, body {overflow: hidden;scrollbar-base-color: #330066;}
.crash {position:absolute;left:200px;top:200px;width:200px;}
</style>
<script type="text/javascript">
function galgenfrist() {
window.setTimeout('crashIE();',1000);
}

function crashIE() {
var moveNode = document.getElementById("move");
if(moveNode) {
moveNode.style.top = "100px";
moveNode.style.left = "200px";
}
}
</script>
</head>

<body onload="galgenfrist();">
<h1>CRASH-IE</h1>
<div id="move" class="crash">
<table>
<tbody>
<tr>
<td>
<textarea></textarea>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

5 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6_test2.html
具体引起的原因暂时无法解析,但在兼容性和执行效率来看一般不会采取这样的写法。

<script>for (x in document.write) { document.write(x);}</script>

6 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6_test3.html
传说是一名日本人发现的,table中直接放置内容,在IE6会引起Mshtml.all模块损坏而关闭浏览器,非IE6则安全无恙。

<style>*{position:relative}</style><table><input></table>

7 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6_test4.html

<body onLoad=”window()”>

8 crash IE6 code

Demo:http://blog.gulu77.com/demo/200808/crash_ie6_test5.html
CSS中出现@+任意字符+/* 立即崩溃。

<style>@;/*</style>

注:4~8 from http://www.catswhocode.com/blog/6-html-and-javascript-codes-to-crash-ie6

版本:20090218

来源:http://blog.gulu77.com/?p=59