`
niwtsew
  • 浏览: 71917 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
http://www.cssnewbie.com/css-float-property/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Conte ...
http://css.maxdesign.com.au/floatutorial/tutorial0916.htm   #container { width: 90%; margin: 10px auto; background-color: #fff; color: #333; border: 1px solid gray; line-height: 130%; } #top { padding: .5em; background-color: #ddd; border-bottom: 1px solid gray; } #top h1 { pad ...

rollover list

http://css.maxdesign.com.au/listamatic/vertical08.htm Comments: Rollovers can be achieved by converting the a elements within the list to blocks using display: block; and swapping background colors using the a:hover pseudo-class   <div id="navcontainer"> <ul id="navl ...
http://codeaid.net/javascript/convert-size-in-bytes-to-human-readable-format-(javascript)     function bytesToSize (bytes) { var sizes = ['Bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']; if (bytes == 0) return 'n/a'; var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)) ...
http://unix-school.blogspot.in/2011/08/shell-script-to-do-shell-scripting.html     $ cat workon #!/usr/bin/bash if [ ! -f $1 ]; then echo "#!/usr/bin/bash" > $1 fi while [ 1 ]; do vi $1 chmod 755 $1 ./$1 read dummy done in .vimrc ...
here's is a workaround in IE and chrome. The idea is to wrap the option with a <span> and hide that <span>.   function optWrapper(opt){ var optSpan = undefined; if ($(opt).parent().is('span')){ optSpan = $(opt).parent(); } return optSpan; } function hi ...
seems only <input type="xxx"> can support autocomplete.
http://archive.plugins.jquery.com/project/overlabel

ftp put

#!/bin/ksh if [ $# -lt 3 ] then    echo Usage: $0 hostname directory filename    echo Note: make sure the machine,login,password has been existed in ${HOME}/. netrc. For example:    echo    echo machine=zsups315    echo login=root    echo password=mypassword    exit 1 fi hostname=$1 #ge ...

ftp get

#!/bin/ksh if [ $# -lt 3 ] then     echo Usage: $0 hostname directory filename     echo Note: make sure the machine,login,password has  existed in ${HOME}/.net rc. For example:     echo     echo machine=zsups315     echo login=root     echo password=mypassword     exit 1 fi hostname=$1 # ...

find class in which jar

#!/bin/ksh #this script is used to find class in which jar file if [ "$#" -le "1" ]; then    echo "Usage: $0 class_name jar_path_1 [jar_path2]...[jar_pathn]"    exit 1 fi #class to be found CLASS=$1 shift 1 for JAR in $* do     if [ -d ${JAR} ]     then     ...
<a href='#' oncontextmenu='return false;' onclick='blabla;'></a>
Lessons learned: html listbox only posts selected items   solution $ ( function () {         $ ( "form" ). submit ( function ( e ) {             $ ( "#yourListBox option" ). attr ( "selected" , "selected" );   ...
As of jQuery 1.6 , the .attr() method returns undefined for attributes that have not been set.   Example: I want to select/unselect all item checkboxes by check/uncheck a single "selectAll" checkbox   Prior to 1.6 works:               $('#selectAll').click(function(event) {       ...
tmw=tomorrow yday=yesterday
Global site tag (gtag.js) - Google Analytics