Time of Update: 2015-01-07
標籤:做前端的稍微有點經驗的都知道 可以通過合并小圖片 來減少請求數,最早可能都是通過 fw、ps 等工具來手動合并,這種方式的缺點就不吐槽了,效率低,可維護性差 等等 ....一些很厲害的人,往往會開發出很厲害的程式,來解決重複性的勞動,1. https://github.com/iazrael/ispriter2. http://www.uini.net/?p=8703. http://csssprites.org/4. more
Time of Update: 2015-01-07
標籤: 1 body{ 2 background-image:url(‘11.jpg‘); 3 background-color:yellow; 4 background-repeat:no-repeat; 5 background-attachment:fixed; 6 background-position:center; 7 background-origin:content-box; 8 } 9 10 11
Time of Update: 2015-01-07
標籤: 有時候使用js進行頁面跳轉,想使用 a 標籤中 target="_blank" 形式,跳轉開啟一個新的頁面。可以使用以下指令碼,建立一個 a標籤,然後類比點擊操作。代碼如下: function searchBaidu() { var url = "http://www.baidu.com“; window.location.href = url; var el =
Time of Update: 2015-01-07
標籤:1.什麼是非同步編程? 非同步編程是指由於非同步I/O等因素,無法同步獲得執行結果時, 在回呼函數中進行下一步操作的代碼編寫風格,常見的如setTimeout函數、ajax請求等等。 樣本:
Time of Update: 2015-01-07
標籤:<html> <head> <meta charset="utf-8" content="text/htnl"> <title>button</title> <style type="text/css"> a.button{ position:relative; width: 80px; height: 50px; background-color: red; display: block; text-align:
Time of Update: 2015-01-07
標籤:imagemagick imagick查了一些相關資料,imagemagick
Time of Update: 2015-01-07
標籤:memcache memcached安裝PHP的MEMCACHE擴充下載http://pecl.php.net/package/memcachetar -zxvf memcache-3.0.8.tgzcd memcache-3.0.8.tgz/usr/bin/phpize./configure --enable-memcachemake && make install顯示完成:Installing shared
Time of Update: 2015-01-07
標籤:prefork workerprefork模式這個多路處理模組(MPM)實現了一個非線程型的、預派生的web伺服器,它的工作方式類似於Apache
Time of Update: 2015-01-07
標籤:maxrequestsperchild<IfModule prefork.c> StartServers 150 MinSpareServers 10 MaxSpareServers 20 ServerLimit 20000 MaxClients 20000 MaxRequestsPerChild
Time of Update: 2015-01-07
標籤:php 魔術方法<?php/** 官方文檔:http://php.net/manual/zh/language.oop5.magic.php*/class magic { public $a = array(1); protected $b = array(
Time of Update: 2015-01-07
標籤:多對多查詢 多對多註解 criteria 實體查詢條件 以下是通過hibernate註解的方式寫的多對多關係使用者和角色實體,即一個使用者有多個角色,一個角色下也有多個使用者。普通屬性作為條件查詢相信那麼簡單大家都會了,如下是一個關係實體作為查詢條件的小例子。使用者和角色的多對多配置如下:@Entitypublic class User
Time of Update: 2015-01-07
標籤:blank 伺服器 border target style 1. “View Configuration”選擇“Servers”,右則選擇“Connection Server”,在下面選擇對應的Connection伺服器,然後選擇“Edit” 650) this.width=650;"
Time of Update: 2015-01-07
標籤:jquery td
Time of Update: 2015-01-07
標籤:null 介面 .NET中的類型有5中:類、結構、枚舉、介面和委託。而類和結構有著很大的相似性,都可以擁有向欄位、方法這樣的成員。 但是,類和結構還是有很多不同的。
Time of Update: 2015-01-07
標籤:important 網站 1.CSS規則如果兩個選取器完全相同,後出現的為準越具體的選取器,為準2.letter-spacing word-spacing字母間距,單詞間距3.:first-letter :first-linep:first-letter 該p段落的第一個字母4.[][attribute]
Time of Update: 2015-01-07
標籤:memcache php# 我們開始裝memcache
Time of Update: 2015-01-07
標籤:html html製表代碼<!DOCTYPE html ><html > <head>
Time of Update: 2015-01-07
標籤:google 快速鍵 html5 asdfasdf display 1.accesskey,tabindex
Time of Update: 2015-01-07
標籤:phpmyadmin centos 在安裝phpmyadmin後,開啟www.phpmyadmin.com 報500錯誤1:檢查apache日誌 [[email protected] ~]# tail /etc/httpd/logs/error_log[Wed Jan 07 17:47:12 2015] [error] [client 192.168.3.2]
Time of Update: 2015-01-07
標籤:php apc 本文引用《高效能 PHP 開發》來做下記錄無論從命令列還是從 Web 服務器上執行 PHP 指令碼時,PHP 必須執行所需的5個步驟。Zend 引擎必須從檔案系統中讀取該檔案、掃描其詞典和運算式、解析檔案、建立要執行的電腦代碼(稱為Opcode),最後執行 Opcode。PHP 的生命週期非常的短暫,但是,每次對指令碼發起請求時,它必須執行這5個步驟。每次在針對特定的 PHP