摘要:<!DOCTYPE HTML><html dir="ltr" lang="zh-CN"><head> <meta charset="utf-8"> <title></title> <style type="text/css"> #info{width:100px;height: 100px;background-color: #ff0000;position: absolute;top: 0;left: 0;} </style
阅读全文
摘要:<!DOCTYPE HTML><html dir="ltr" lang="zh-CN"><head> <meta charset="utf-8"/> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script></head><body>
阅读全文
摘要:<?php require_once "connect.php";echo <<<_END<!DOCTYPE HTML><html dir="ltr" lang="zh-CN"> <head> <meta charset="utf-8"> <title></title> </head> <body> <form action="sql_test.php" method=&
阅读全文
摘要:<?php /** * @sqltest.php */require_once "app_config.php";if (isset($_POST['delete']) && isset($_POST['isbn'])) { $isbn=get_post('isbn'); $query="delete from classics where isbn='$isbn'"; if (!mysql_query($query)) { echo mysql_error(); }}
阅读全文
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>瀑布流布局(绝对定位)</title> <style type="text/css"> html, body{ height:100% } html, body, #warp p{ margin:0; padding:0 } #warp{ margin:20px auto; posit...
阅读全文
摘要:<!DOCTYPE HTML><html lang="zh-CN"><head> <meta charset="utf-8"> <title></title> <style type="text/css"> img{padding: 5px;} #outer{width: 100%;height: 100%;} .overlay{background-color: #000;opacity: .7;filter:alpha(opacity=70);po
阅读全文
摘要:<!DOCTYPE HTML><html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Prevent Propagation</title> <style type="text/css"> #one{width: 100px;height: 100px;background-color: #0f0;} #two{width: 50px;height: 50px;background-color:
阅读全文
摘要:<!DOCTYPE HTML><html lang="zh-CN"> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> #redbox{position: absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: red;} </style> </he
阅读全文
摘要:>>> print {i : chr(65+i) for i in range(4)} {0 : 'A', 1 : 'B', 2 : 'C', 3 : 'D'} >>> print {k : v for k, v in someDict.iteritems()} == someDict.copy() 1 >>> print {x.lower() : 1 for x in list_of_email_addrs} {'barry@zope.com' : 1, &#
阅读全文
摘要:<!doctype html><html><head> <title></title></head><body> <style type="text/css"> dl{width: 330px;padding: 10px;margin: 0 auto;text-align: center;line-height: 100px;} dl dt{font-size: 30px;font-family: "微软雅黑"} dl dd{float: left;displ
阅读全文
摘要:1 git安装:https://help.github.com/articles/set-up-git2 git配置:git config --global user.name "xxx"git config --global user.email "xxx"3 Generating SSH keys 生成ssh密钥希望这个时候你已经有了一个github的帐号,因为key是要绑定的,没有就去申请一个吧密钥应该是在根目录的.ssh下$ cd ~/.ssh$ ssh-keygen -t rsa -C "xxx@xxx.com"$ lsco
阅读全文
摘要:demo:var Mar=(function(Global){ var Marquee=function(id){ var content=document.getElementById(id), original=content.getElementsByTagName("li")[0], speed=arguments[1] || 10, clone=original.cloneNode(true); content.appendChild(clone); var sc...
阅读全文
摘要:Apache$sudo apt-get install apache2在浏览器中测试 http://localhostPHP$sudo apt-get install php5 libapache2-mod-php5重启Apache服务$sudo /etc/init.d/apache2 restart测试安装$sudo gedit /var/www/testphp.php添加测试语句<?php phpinfo(); ?>保存退出。在浏览器中测试 http://localhost/testphp.php$sudo rm /var/www/testphp.phpMySQL$sudo a
阅读全文
摘要:Demo:<!DOCTYPE HTML><html lang="zh-CN"><head> <meta charset="UTF-8"> <title></title> <script src="http://yui.yahooapis.com/3.10.0/build/yui/yui-min.js"></script> <script type="text/javascript" src="js.js&
阅读全文