CSS Hack 汇总快查

by Aaron 1. January 2010 13:25
*:lang(zh) select {font:12px !important;} /*FF的专用*/ select:empty {font:12px !important;} /*safari可见*/ 这里select是选择符,根据情况更换。第二句是MAC上safari浏览器独有的。 仅IE7识别 *+html {…} 当面临需要只针对IE7做样式的时候就可以采用这个HACK。 IE6及IE6以下识别 * html {…} 这个地方要特别注意很多地主都写了是IE6的HACK其实IE5.x同样可以识别这个HACK。其它浏览器不识别。 ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Web Develop | XHTML&CSS

div+CSS 兼容小摘

by Aaron 1. January 2010 03:24
区别IE6与IE7: background:green !important;background:blue; 区别IE7与FF: background:orange; *background:green; 区别FF,IE7,IE6: background:orange;*background:green !important;*background:blue; IE7,IE8兼容: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> HE... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Web Develop | XHTML&CSS

[转]40种网站设计常用技巧

by Aaron 31. December 2009 15:42
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)><td>no</table> 可用于Table 2. <body onselectstart="return false"> 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Web Develop

CSS hack:区分IE6,IE7,firefox

by Aaron 7. November 2009 18:00
区别不同浏览器,CSS hack写法: 区别IE6与FF:        background:orange;*background:blue; 区别IE6与IE7:        background:green !important;background:blue; 区别IE7与FF:        background:orange; *background:green; ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

Web Develop | Windows

IE与Firefox的CSS兼容大全

by Aaron 5. November 2009 14:23
      1.DOCTYPE 影响 CSS 处理   2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行   3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中   4.FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 wid... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

Web Develop | XHTML&CSS

区域性名称和标识符

by Aaron 26. October 2009 01:48
区域性名称 区域性标识符 语言-国家/地区 ""(空字符串) 0x007F 固定区域性 af 0x0036 南非荷兰语 ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

VS.NET | Web Develop

Css Bug顺口溜

by Aaron 22. October 2009 00:23
一、IE边框若显若无,须注意,定是高度设置已忘记; 二、浮动产生有缘故,若要父层包含住,紧跟浮动要清除,容器自然显其中; 三、三像素文本慢移不必慌,高度设置帮你忙; 四、兼容各个浏览须注意,默认设置行高可能是杀手; 五、独立清除浮动须铭记,行高设无,高设零,设计效果兼浏览; 六、学布局须思路,路随布局原理自然直,轻松驾驭html,流水布局少hack,代码清爽,兼容好,友好引擎喜欢迎。 七、所有标签皆有源,只是默认各不同,span是无极,无极生两仪—内联和块级,img较特殊,但也遵法理,其他只是改造各不同,一个*号全归原,层叠样式理须多练习,万物皆... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , ,

Web Develop | XHTML&CSS

一些常用的WebServices

by Aaron 24. September 2009 08:43
天气预报Web服务,数据来源于中国气象局 Endpoint  Disco  WSDL IP地址来源搜索 WEB 服务(是目前最完整的IP地址数据) Endpoint  Disco  WSDL 随机英文、数字和中文简体字 WEB 服务 Endpoint  Disco  WSDL 中国邮政编码 <-> 地址信息双向查询/搜索 WEB 服务 Endpoint  Disco  WSDL  验证码图片 WEB 服务 支持中文... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

VS.NET | Web Develop

span元素float:right 后右对齐换行原因及其解决

by Aaron 10. September 2009 10:19
今天遇到一个奇怪的问题: 有个这样的布局: <div> 这里是标题 <span class="right">这里是时间</span> </div> 在FF 和 chrome 都正常,显示一行 可是到了IE下就不对了,变成了两行! 在网上找了些资料,算是明白了,具体如下: 原因: 当非float的元素和float的元素在一起的时候,如果非float元素在先,那么float的元素将被排斥也就是说,你的span是float:right,但是你文本还是fl... [More]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

Web Develop | XHTML&CSS

13种常用按钮、文本框、表单等CSS样式

by Aaron 15. August 2009 00:30
一、按钮样式 .buttoncss{ font-family:"tahoma","宋体";/*www.52css.com*/ font-size:9pt;color:#003399; border:1px#003399solid; color:#006699; border-bottom:#93bee21pxsolid; border-left:#93bee21pxsolid; border-right:#93bee21pxsolid; border-top:#93bee21pxsolid; background-imag... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Web Develop | XHTML&CSS

Xhtml代码嵌套查看辅助工具

by Aaron 28. July 2009 12:20
为了更方便找到可能出错的地方,JSLab实验室写了一个Xhtml代码嵌套查看辅助工具。该工具的使用流程如下:1、复制要检查部分的代码,粘贴到Source代码框中2、在标签框输入要检查的标签名3、然后进行过滤、格式化结构、呈现这个时候,该工具的作用结束,如果还不能更好的发现出错的地方,可以将结果代码复制到可格式化代码结构的编辑器中进行更详细的比对!Xhtml代码嵌套查看辅助工具在线演示:http://www.v-ec.com/nesting/

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

JavaScript | Web Develop | XHTML&CSS

XHTML1.0与HTML兼容指引16条

by Aaron 28. July 2009 12:14
在为大家介绍完如何在XHTML中正确地使用JavaScript和CSS之后,W3CGroup继续为大家带来XHTML与HTML兼容的16条指引!1.避免将页面声明为XML类型,页面使用UTF-8或者UTF-16字符集。2.在空元素标签(不能用来包含内容的标签)结束符>前加上斜杠 /,如:<br />,<hr />等等。3.当一个非空元素(此标签是用来包含内容的,如标题,段落)内容为空时,给它一个空白字符,而不要使用像空元素那样的结束方法,如:当一个没有内容的P标签请书写:<p> </p>而不要写成<p />。4.当你的style... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

JavaScript | Web Develop | XHTML&CSS

[教程] 谈谈网页设计中的字体应用 (4) 实战应用篇·下 [转载]

by Aaron 11. April 2009 11:04
Yoho, 大家好,又是我哟~ 首先抱歉让大家等了这么多时间。最近实在比较繁忙啦。不过我还是会尽量抽空出来给大家讲点有的没的,欢迎大家继续关注哦。 上次我讲了在实际应用font-family时会遇到的浏览器兼容性问题。这次我要从操作系统方面来讲如何安排字体族。另外,由于中文字体的选择范围实在太小,所以本章中设计的内容主要以西文字体为主,比较适合上一章中的“方案二”。 - 不同操作系统的常用字体 如何让你的字体在任何系统,任何电脑上都看起来一致? 原则很简单。尽可能使用所有操作系统都存在的字体。虽然听起来比较简单,但是其... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , , ,

Web Develop

[教程] 谈谈网页设计中的字体应用 (3) 实战应用篇·上 [转载]

by Aaron 11. April 2009 11:03
Hello, 大家好,又是我~ 大家有看过font set和一些要注意的基本问题以及通用字体族两篇文章后,应该对字体的基本有了一些了解。现在我们开始把这些知识都应用到实战中吧! - 规范中 font-family 的解释方式 我们定义下面这个字体表: font-family: "Comic Sans MS", "幼圆", "黑体", sans-serif; 按照W3C的规范,浏览器在使用这个 font-family 显示一个字符时,首先应该寻找 Comic Sans MS 字体。... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , , ,

Web Develop

Powered by BlogEngine.NET 1.4.5.0 | 蜀ICP备07501087号
Theme by Aaron Hu

Google Ads

订阅


推荐信息

声明

  本Blog上的任何言论仅代表个人观点,与其它个人、公司、单位没有任何关系。所有贴子皆以“现状”提供且没有任何担保,同时也没有授予任何权利。

  同时,本站也会从网上收集相关文章,如果转载内容有侵犯你的版权或者其他利益,请和我联系,我会及时处理。

© Copyright 2008  Log in