文章列表
 
您正在查看 "Webdesign" 分类下的文章

2010年02月21日 星期日 19:02
.clearfix{*zoom:1;}
.clearfix:after{content:'\20';display:block;height:0;clear:both;}

.clear:after{content:'\20';display:block;height:0;clear:both;}
.clear{*zoom:1;}

content:'\20'指定在浮动列表后增加一个空白字符,首先这个字符不可见,无需 visibility:hidden来隐藏(如下的样式),其次他没有高度,无 需height:0来隐藏其高度。因此这样就大大简化了原来的代码同时也达到了清除浮动的目的。

用法:
<ul class="clearfix">
<li style="float:left"><li>
<li style="float:left"><li>
<li style="float:left"><li>
</ul>

使用visibility来隐藏的方法:
.clearfix {height: 1%;}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
 
2008年09月29日 星期一 0:41

CSS 中替代 <td nowrap="true"> 的设置:

table td { white-space:nowrap; }

CSS 中替代 <table cellpadding="3"> 的设置:

table td { padding:3px; }

CSS 中替代 <table cellspacing="3"> 的设置:

table { border-collapse:collapse; border-space: 3px; }

CSS 中斜体文本的设置:

font-style:italic;

CSS 中文本垂直居中的设置:

vertical-align:middle;

 
2008年07月12日 星期六 1:42
Typogridphy 完全使用em来进行布局,达到真正的可缩放。
1. 基于960 grid system
它是一套基于 960 grid system 的 CSS 框架,可以让设计师或者开发者快速创建满意的网格布局,而且它是完全通过 strict xhtml 和 css的。

2. 特性
它使用em为单位来布局,也就是说他可以支持所有主流的浏览器就行缩放,也就是按住CTRL 键,然后滚动鼠标,就可以实现整个布局的缩放。事实上使用em布局让所有浏览其达到一致的效果比像素难,它也特别适合做弹性的布局设计。

浏览实例页面
 
2008年07月12日 星期六 1:30
1. 介绍
960 grid system 是一套基于宽度为 960px CSS 框架,它为网页布局提供了通用的尺寸设置,它提供了两种不同的尺寸布局:12列和16列,它们可以独立使用,也可以一起使用。

2. 特性
12列的布局,将总宽分成12份,每份的宽度是60px,而16列的布局分成16份,每份的宽度是40px,每部分左右边距都是10px,从而每列产生20px的空隙。

3. 目的
这套框架主要想提供能够快速原型的 CSS 解决方案,很容易使用在新的设计或者产品中,他同时提供了设计布局,打印布局和一个能提供一致尺寸的 CSS 文件,也就是我们通常说的 reset css。

浏览实例页面

 
2008年07月09日 星期三 11:04
"Cheat sheets are helpful to have around because they allow you to quickly remember code syntax and see related concepts visually. Additionally, they’re nice decorative pieces for your office.

In this article, you’ll find 23 excellent, print-ready cheat sheets for HTML/HTML, CSS, and JavaScript (including MooTools and jQuery)."

Download here...

I have more than 20 cheat sheets and I've printed some for reading in the subway.

 
2008年07月03日 星期四 23:27
From: Flexible Layouts: Challenge For The Future
Flexible Layouts with YAML
使用YAML的弹性布局

YAML (”Yet Another Multicolumn Layout”) 是一个 (X)HTML/CSS 框架,它为了满足弹性的和用户友好的布局而开发的。YAML自2007年出现以来就提供了广而全的文档。像许多其他的CSS-Framework如Blueprint CSSYUI Grids 一样,提供了一个预定义的 CSS-classes 系统,用来创建基于网格的布局。要创建一个布局,设计师需要创建网站 HTML 结构,然后为容器(html标签)书写CSS,剩下的就自理了。

YAML 是走不同的路线,他支持基于网格的布局开发,也支持网格系统开发,但都是强调弹性都布局。如果有设计师想要创建基于网格都布局,他可以使用三列,头部和尾部的基本框架。每个元素都能够移动或者适应用户都需求。真实都设计中,列的位置是使用 CSS来定义的(在其它都 CSS 框架中使用都是 html 结构来做的)。对设计师都好处:使用 YAML 你定义类时能得到更好都选择,使用任何尺寸的单元并得到干净都代码。

基于 HTML 结构的 YAML 包括了已经防止 IE-bug 都布局都预设置。因此,它可以让设计师们更容易都创建它们都布局而不用担心新老浏览器都兼容问题。这个布局示例 (Layout examples) 提供了在 YAML 中什么是可能的一个概述,也可能会带给你们未来都设计布局的一些新的想法。除此之外,YAML 还提供来一套灵活都网格组件,你可以在列中创建列因而创建更复杂又弹性的网格布局。

相对上面都示例, BluePrint 框架也有一个使用 BluePrint 创建布局的示例页面(demo_page),它与 YAML 使用弹性都网格元素创建都模板非常都相似,这个缩放的模板甚至能在 IE5.5 下正常地工作,包括最大和最小宽度(max-width and min-width)。

除了布局设计以外,YAML 也为打印布局传递样式表,也作为水平和垂直都导航的组件。要掌握 YAML 需要一定的时间学习(攀爬学习曲线):这个工具提供了很多不同的功能和用户友好的弹性布局,这些都不是很容易就能创建的。

然而,YAML 的概念是有很好的在线文档和PDF文档,提供一个完整的框架介绍给初学者和专业人员。你也可以通过使用 YAML-Builder 来实践,这是一个非常方便的基于 YAML 都 CSS 布局的可视化开发工具,它允许你通过拖放来创建可视化都布局,有效的 HTML 和 CSS 代码都会实时地自动生成。

 
2008年06月29日 星期日 1:53
See the following link for video:
http://developer.yahoo.com/yui/grids/#available-templates
In this 42-minute tech talk from October 2007, YUI senior engineer and CSS component author Nate Koechley provides a holistic introduction to this and all of the YUI CSS components.

Yahoo! UI Library: Grids CSS
A complex solution for many problems you might ever have: grid design is a principle well-known from image editors and layout tools.
 
2008年06月29日 星期日 0:42
Below you’ll find a list of resources which offer free, gorgeous and valid CSS-based templates.

More...
 
2008年02月03日 星期日 12:45
YSlow is a Firefox add-on integrated with the popular Firebug web development tool. YSlow analyzes web pages and tells you why they're slow based on the rules for high performance web sites.

You can know more from Yahoo! Developer Network.

P.S You have to intall Firebug first.
 
2008年01月15日 星期二 10:55
From: Usabilityfirest

On websites, a form of navigation where the current location within the website is indicated by a list of pages above this page in the hierarchy, up to the main page. For example, if you were browsing the products at a department store, you might see the following hierarchy when you're on the Sneakers page:

Home > Products > Clothes > Shoes > Sneakers

Each of the categories above the current page is usually a link to the corresponding category page.

The term "breadcrumbs" is a reference to the Hansel and Gretel tale where they leave breadcrumbs as they wander the forest so they can find their way home. The metaphor is imperfect because the breadcrumbs do not represent the actual path the user took, but instead the optimal path from the home page to the current page in the hierarchy.
 
   
 
 
文章分类
 
 
 
Ria(25)
 
 
 
 
 
Ruby(2)
 
 
Php(87)
 
Linux(17)
 
Jquery(34)
 
 
Joomla(17)
 
   
 
文章存档
 
     
 
最新文章评论
  

用java的话后台该怎么写呢?都是php的
 

真心谢谢楼主,让我受益了。
 

“这章会教你如何改变在飞的html文档的结构” 博主用神马翻译软件?on the fly在这里
 

谢谢
 

[表情]
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu