posted @ 2013-05-27 21:52
随笔分类 - WEB设计标准
摘要:Array没有indexOf方法,这样在一个数组中查找某个元素的索引时比较麻烦,为了调用方便,于是通过prototype原型扩展了Array.prototype.indexOf(),这样用起来就比较方便了。但是这个自定义的indexOf在对数组进行遍历的时候却出现了问题。 Array没有indexOf方法,这样在一个数组中查找某个元素的索引时比较麻烦,为了调用方便,于是通过prototype原型扩展了Array.prototype.indexOf(),这样用起来就比较方便了。Array.prototype.indexOf = function(item) { for (var i = 0; i
阅读全文
摘要:我们在写页面代码的时候,有时把一个表格的宽度定死后会出现里面的文字不见了,特别是英文。这就是他换行了所导致的,这时我们就需要加些CSS元素让它来听我们的话!根据自己以往的经验,也参考了些网上的文章,具体如下:强制不换行div{ white-space:nowrap; } 自动换行div{ word-wrap: break-word; word-break: normal; } 强制英文单词断行div{ word-break:break-all; }============================================CSS设置不转行:overflow:hidden 隐藏 wh
阅读全文
posted @ 2012-05-11 10:47
摘要:1. Agile jQuery CarouselHighly customizable jQuery Carousel plugin so you can build according to your requirements. JSON data format is used to provide easier integration with external data or data from your CMS. Use it for agile web development. This is an all new version written from scratch. JQue
阅读全文
posted @ 2012-03-29 14:10
摘要:<div id="footer"> <img src="templets/images/footlogo.gif"/> <p>XXXX网 版权所有 Copyright @2009-2011 www.xxx.com All Rights Reserved. <br />特别声明:本站医学信息仅供参考,转载本站文章请注明出处.</p> <div><div style="display:none;">hidden-解决IE6文字溢出</div>&
阅读全文
posted @ 2012-03-20 14:40
摘要:透明往往能产生不错的网页视觉效果,先奉上兼容主流浏览器的CSS透明代码:.transparent_class { filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; }上面的几个属性分别是:opacity: 0.5; 这是最重要的,因为它是CSS标准.该属性支持firefox, Safari和 Opera.filter:alpha(opacity=50); 这个是为IE6设的,可取值在0-100,其它三个0到1.-moz-opacity:0.5; 这个是为了支持一些老版本的Mozilla浏
阅读全文
posted @ 2012-02-23 15:14
摘要:简单对象访问协议(SOAP,全写为Simple Object Access Protocol)是一种标准化的通讯规范,主要用于Web服务(web service)中。SOAP的出现是为了简化网页服务器(Web Server)在从XML数据库中提取数据时,无需花时间去格式化页面,并能够让不同应用程序之间透过HTTP通讯协定,以XML格式互相交换彼此的数据,使其与编程语言、平台和硬件无关。此标准由IBM、Microsoft、UserLand和DevelopMentor在1998年共同提出,并得到IBM,莲花(Lotus),康柏(Compaq)等公司的支持,于2000年提交给万维网联盟(World
阅读全文
posted @ 2011-07-29 17:10
摘要:引自:http://www.w3.org/TR/uri-clarification/ URIs, URLs, and URNs: Clarifications and Recommendations 1.0Report from the joint W3C/IETF URI Planning Interest GroupW3C Note 21 September 2001This version:http://www.w3.org/TR/2001/NOTE-uri-clarification-20010921/Latest version:http://www.w3.org/TR/uri-cl
阅读全文
posted @ 2011-07-29 15:15
浙公网安备 33010602011771号