`
文章列表
// JavaScript Document (function($){ /*drop menu packaging*/ $.fn.dropmenu = function(options){ var defaults = { contanier: '', itemsCss: '' } var options = $.extend(defaults,options); this.each(function(){ var obj = $(this); var objspan = obj.children('li').child ...
1、安装.deb格式的文件方法: sudo dpkg -i package.deb; 2、改变访问权限 sudo chmod -(代表类型)×××(所有者)×××(组用户)×××(其他用户) sudo chmod -R 777 文件/文件夹; sudo chmod 600 ××× (只有所有者有读和写的权限) sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限) sudo chmod 700 ××× (只有所有者有读和写以及执行的权限) sudo chmod 666 ××× (每个人都有读和写的权限) sudo chmod 777 ××× ...
1、 Great software, likewise, requires a fanatical devotion to beauty.  If you look inside good software, you find that parts no one is ever supposed to see are beautiful too.  I'm not claiming I write great software, but I know that when it comes to code I behave in a way that would make me eligible ...
找到系统文件hosts window目录:C:\WINDOWS\system32\drivers\etc # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP addr ...
font-family: 'Essays 1743',Palatino,'Palatino Linotype','Book Antiqua',Georgia,'Times New Roman',serif; font: large/1.556 'Linux Libertine',Palatino,'Palatino Linotype','Book Antiqua',Georgia,'Times New Roman',serif; background:url("../images/topbg.png") repeat-x scroll 0 left transpa ...
支持浏览器 IE FIREFOX SAFARI CHROME OPERA IPHONE ANDROID 9.0+ 3.5+ 5.0+ 5.0+ 10.6+ 3.0+ 2.0+ navigator.geolocation.getCurrentPosition(); //use navigator.geolocation.getCurrentPosition(show_map, handle_error); http://diveintohtml5.org/geolocation.html
1、效果1:关于新闻信息文字上下切换 <div id="scrollNews"> <ul> <li> <span class="plin">July 12,2009 4:30 pm</span> AR Update: Rolling Stones concert canceled for July 22 in Los Angeles. </li> <li> <span class=&qu ...
一个绝对位置的div(菜单),在它的下面盘旋时,一个透明PNG也是绝对位置,如下: 使用下面的代码 <div style="position: relative; z-index: 3000"> <div style="position:absolute;z-index:1000;"> <a href="#">Page</a> ... </div> </div> <img style=&quo ...
Server 返回http状态值 100 Continue:初始的请求已经接受,客户应当继续发送请求的其余部分。   101 Switching Protocols:服务器将遵从客户的请求转换到另外一种协议。   200 OK:一切正常,对GET和POST请求的应答文档跟在后面。 ...
注释:code来源javaeye 使用前要引入jquery库和jquery.hotkeys.js ui HTML CODE <div class="searchform"> <form action="" method="post" onsubmit="return false;"> <input type="text" name="top_search" class="text global_search" /& ...
引用http://www.phpchina.com/manual/apache/vhosts/examples.html
1、样式:color:#113366; 可以简写成 color:#136 2、margin-top:1px;    margin-right:1px;    margin-botton:1px;    margin-left:1px; 可以简写成 margin:1px 1px 1px 1px; margin:1px;//四个方向的边距相同,等同于margin:1px 1px 1px 1px; margin:1px 2px;//上下边距都为1px,左右边距均为2px,等同于margin:1px 2px 1px 2px; margin:1px 2px 3px;//右边距和左边距相同,等同于margi ...
<!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> <title>随滚动条移动的层</title> <meta http-equiv="content-type ...
1、php substring截取字符串的方法 <?php function substring($str, $start, $length) { //比较好用字符串截取函数 $len = $length; if($length < 0){ $str = strrev($str); $len = -$length; } $len= ($len < strlen($str)) ? $len : strlen($str); for ($i= $start; $i < $len; $i ++) { if (ord(substr($str, $i, 1) ...
$test_arr = array( 'name' => 'test', 2 => 2, 'color' => "red" ); echo '使用var_dump方法输出数组:'; var_dump($test_arr); echo '<br/><br/>使用print_r方法输出数组:'; print_r($test_arr); if(is_array($test_arr)){ echo "<br/><br/>$ test_ ...
Global site tag (gtag.js) - Google Analytics