`
xhuang
  • 浏览: 29979 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论
文章列表
将博客搬至CSDN
这里所谓的低级浏览器,怎么讲呢?存在共识的如IE6,更确切的将应该是不支持,现有的一些比较高级的特性(如localStorage)的浏览器!   对于HTML5和css3的使用,现在应该是必然的趋势。但为了兼容”低级浏览器“,我们开发时也得做一些动作,主要的方式   是当检测到这些版本的浏览器,跳转至网站的较低级版本(兼容低级浏览器),下面举两个例子:   1.  通过meta方式实现跳转     <!--[if IE 6]> <meta http-equiv="refresh" content="0;url=/ie6.html ...
采用JQuey要实现图片点击自动向上,向下翻页! 代码:     $(document).ready(function() { $("img").mousemove(function(e){ var positionX=e.originalEvent.layerX||e.originalEvent.x||0; if(positionX<=$(this).width()/2){ this.style.cursor='url("/image/single/pre.cur"),auto'; ...
今天给firefox安装个扩展, AutoPager 它可以自动将分页的内容在一张页面中显示,类似于我们在浏览第一页时,autopager异步加载其他页面的内容并插入到当前页的后面。   在addons.mozilla.org中搜索,autopager: 见下图 突然想起,之前安装firebug,它也有相应的lite版本:firebug lite(http://getfirebug.com/firebuglite ).   那究竟啥是lite version呢?网上查了下,瞬间柳暗花明: 英文解释: 写道 lite version An ab ...
首先抛出问题: “和父元素相同大小的子元素,设置了四边的Margin的子元素却向右侧平移了”(源自者也:http://zheye.org/asks/4e8582effd503c260d0004d7 ) stackoverfow: Margin on child element moves parent element Child elements with margins within DIVs 其实: 以上问题都源于css中的margin collapse,即外边距叠加。 以下内容源于css mastery seco ...
运用场景:   HTML:   <!DOCTYPE html> <html> <head> <style type="text/css"> div { width:300px; } table { table-layout:fixed; width:100%; height:50px; } td.col1 { width:20px; background-color:blue; } td.col2 { width:40px; backg ...
收集一些有用常用的js方法:   1.判定FF版本号   function getFirefoxVer() {//获取firefox的类型,当然也可以判定是否是FF var _match = navigator.userAgent.match(/Firefox\/(\d\.\d)/i); if (_match) { return parseFloat(_match[1]); } else { return 0; } }   2. 待续...
<form id="contact_form" method="get"> <p> <label for="name">姓名:</label><input type="text" id="name" name="name"> </p> <p> <label for="email">邮 ...
来自help.adobe.com: The Timer class is the interface to timers, which let you run code on a specified time sequence. Use the start() method to start a timer. Add an event listener for the timer event to set up code to be run on the timer interval.     运用它的关键地方:   1. 首先定义好timer对象 public ...
英文: get selected cell value of datagrid in flex   URL:http://siphu.wordpress.com/2009/08/26/get-selected-cell-value-of-datagrid-in-flex/   DataGrid: itemClick="itemClickHandler(event)" function getCellValue(e:ListEvent){ var colIndex:Number=e.columnIndex; var datagrid:DataGrid= ...
pbsk browser URL:http://bis.zju.edu.cn/pbsk   它是采用PHP对XML的强大处理功能,来操作PSI-MI, BioPAX, SBML, KGML四种在生物网络中运用广泛的XML数据交流格式。PBSK Browser, navigating biological pathways of PSI-MI, BioPAX, SBML and KGML formats
方法:   使用快捷键Alt+F2打开运行窗口。 键入gconf-editor,打开Gnome配置编辑器。   定位到apps \ nautilus \ desktop. 在右侧找到名为trash_icon_visible的选项,打上勾 。
man adduser 这个很全 而且有例子 adduser --help 这个告诉你一些常用参数 info adduesr
Libpuzzle The Puzzle library is designed to quickly find visually similar images (gif, png, jpg), even if they have been resized, recompressed, recolored or slightly modified. The library is free, lightweight yet very fast, configurable, easy to use and it has been designed with security in min ...
Php输出Excel乱码解决办法 写道 Phpexcel导出Excel文件时有两个主要的过程: 1、定义文件名 2、填充Excel数据 这两个过程中可能会出现一些乱码问题,下面我来说一下解决办法: 解决文件名的乱码: 乱码原因:客户使用的中文版Windows系统平台,而Windows平台的文件名编码为gb2312(gbk),而我们网页编码为了跟进现存潮流一般都采用utf-8(国际化)编码,这时当我们:header("Content-Disposition: inline; filename=\"" . $filename ...
Global site tag (gtag.js) - Google Analytics