-
IE8 CSS HACK
香水坏坏 发表于2010-3-8 [CSS/UI]前缀:"_" IE6可以识别 IE7、IE8、FireFox不能.
前缀:"*" IE6、IE7可以识别 IE8、FireFox不能.
后缀:\9 例:"margin:0px auto\9;" 所有IE可识别,FF不识别
-
如何正确的在XHTML插入FLASH
香水坏坏 发表于2009-5-18 [CSS/UI]原文:
http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml
XML/HTML代码- <!--[if !IE]> -->
- <object type="application/x-shockwave-flash"
- data="movie.swf" width="300" height="135">
- <!-- <![endif]-->
- <!--[if IE]>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
- codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
- width="300" height="135">
- <param name="movie" value="movie.swf" />
- <!--><!--dgx-->
- <param name="loop" value="true" />
- <param name="menu" value="false" />
- <p>This is <b>alternative</b> content.</p>
- </object>
- <!-- <![endif]-->
-
CSS权重
香水坏坏 发表于2008-12-30 [CSS/UI]Some folks getting on board with CSS tend to get stuck on CSS specificity. The descriptions of which rules override other rules tend to make more sense to programmers than designers, since programmers are used to the concepts of inheritance and overriding properties.
(More...) -
Unobtrusive的Web开发
香水坏坏 发表于2008-8-7 [CSS/UI]原文地址:Unobtrusive Ajax
对Web前端进行分层
- Web前端的分层:
- 核心思想:结构(HTML)、表现(CSS)和行为 (JavaScript)
- 物理上:.html、.css和.js文件
- 概念上:各层之间,相互独立,互不影响
- 借用MVC的思想:
- Model - HTML
- View - CSS
- Controller - JavaScript
- Web前端的分层:
-
CSS 图片垂直居中显示
香水坏坏 发表于2008-6-25 [CSS/UI].box {
/*非IE的主流浏览器识别的垂直居中的方法*/
display: table-cell;
vertical-align:middle;/*设置水平居中*/
text-align:center;/* 针对IE的Hack */
*display: block;
*font-size: 175px; /*约为高度的0.873,200*0.873 约为175*/
*font-family:Arial; /*防止非utf-8引起的hack失效问题,如gbk编码*/width:200px;
height:200px;
border: 1px solid #eee;
}
.box img {
/*设置图片垂直居中*/
vertical-align:middle;
}<div class="box">
<img src="image.jpg" />
</div> -
CSS不可缺少的技巧
香水坏坏 发表于2008-4-3 [CSS/UI]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.
(More...)
CSS是重要的,它正在越来越广泛的被运用。层叠样式表拥有很多表格布局所没有的优势,首先从布局或者页面的设计与出现在页面中的信息中作严格的分离,从而让页面的设计能够很容易被改变,仅用一个CSS文件更换另一个。难道它不够强大吗?恩,是的,其实它很强大。 -
CSS打造网页Tabs
香水坏坏 发表于2008-4-3 [CSS/UI] -
CSS兼容IE6,IE7,FF的技巧
香水坏坏 发表于2007-8-15 [CSS/UI]一、CSS HACK
以下两种方法几乎能解决现今所有HACK.
1, !important
随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.)
<style>
#wrapper
{
width: 100px!important; /* IE7+FF */
width: 80px; /* IE6 */
}
</style>
(More...) -
CSS实现透明
香水坏坏 发表于2007-8-8 [CSS]CSS透明度的实现:
IE6+下:通过滤镜 filter:alpha(opacity=40);
FF1.5+,Opera9+下 opacity:0.4;
取值:{0.0,1.0}|inherit
1表示不透明
Moz + FF 下:-moz-opacity:0.5;
(More...)

