代码改变世界

css 文字换行

2012-09-01 17:09 by youxin, 233 阅读, 0 推荐, 收藏,
摘要:我们设置了一个div的width,当单词很长时并不会被截断,而是超出了div,加上word-wrap:break-word;就可以截断很长的单词到下一行显示。参考:http://ued.taobao.com/blog/2010/10/14/research-of-word-wrap/ 阅读全文

CSS Triangle Arrow DIVs tooltilps

2012-09-01 17:03 by youxin, 446 阅读, 0 推荐, 收藏,
摘要:来自:http://www.dynamicdrive.com/style/csslibrary/item/css_triangle_arrow_divs/An subtle characteristic of CSS that's been exploited to do something interesting is CSS borders and using it to create pure CSS triangles. These triangles have the advantage of being extremely lightweight (no image use 阅读全文

bulletproof ajax 05: hijax

2012-09-01 15:49 by youxin, 350 阅读, 0 推荐, 收藏,
摘要:THE HIJAX APPROACHI’d like to introduce you to a methodology I call Hijax. It’s a two-step plan forbuilding Ajax applications that degrade gracefully:1. Begin by building a regular Web page. The user can request informationfrom and send information to the server using links and forms. The server ret 阅读全文

bulletproof ajax:ajax 载入时显示动画

2012-09-01 14:22 by youxin, 301 阅读, 0 推荐, 收藏,
摘要:The simplest format for this kind of image is an animated GIFfile. The exact image can be anything you like, as long as it featuresa smoothly looping animation. Rotating shapes, spinningarrows, and barbershop-pole progress bars are all popular conventionsfor indicating activity.Here’s a short functi 阅读全文

css layout/fluid03: 2 column left navigation

2012-08-31 20:21 by youxin, 230 阅读, 0 推荐, 收藏,
摘要:demo;http://www.csseasy.com/layouts/fluid/2column_left.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>CSSeasy.com 阅读全文

css layout/fluid02: 1 column top navigation

2012-08-31 20:15 by youxin, 249 阅读, 0 推荐, 收藏,
摘要:demo:http://www.csseasy.com/layouts/fluid/1column_top.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>CSSeasy.com 阅读全文

css layout/fluid01: 1 column no navigation

2012-08-31 20:05 by youxin, 238 阅读, 0 推荐, 收藏,
摘要:demo:http://www.csseasy.com/layouts/fluid/1column.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>CSSeasy.com exam 阅读全文

css layout/fixed04: 2column right navigation

2012-08-31 19:50 by youxin, 249 阅读, 0 推荐, 收藏,
摘要:demo:http://www.csseasy.com/layouts/fixed/2column_right.html<!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=&q 阅读全文

PHP in_array array_search array_key_exists

2012-08-31 00:43 by youxin, 398 阅读, 0 推荐, 收藏,
摘要:in_array checks if a value exists in an array 注意是值boolin_array(mixed$needle,array$haystack[,bool$strict=FALSE] )array_key_exists—Checks if the given key or index exists in the array 注意是键array_keys—Return all the keys or a subset of the keys of an array 返回特定值的key的数组arrayarray_keys(array$input[,mixed$ 阅读全文

javascrit string split escape()

2012-08-30 23:59 by youxin, 231 阅读, 0 推荐, 收藏,
摘要:Split a string into an array of substrings:string.split(separator,limit) limit表示最大的数组元素个数。:If an empty string ("") is used as the separator, the string is split between each character.Use a letter as a separator:var str="How are you doing today?";var n=str.split("o");Th 阅读全文
上一页 1 ··· 211 212 213 214 215 216 217 218 219 ··· 269 下一页