Time of Update: 2018-12-05
實現前端一台nginx,後端3台伺服器的負載平衡我這裡後端的伺服器都是靜態頁面nginx IP 192.168.1.2server1:192.168.1.3server2:192.168.1.4server3:192.168.1.5nginx基本配置如下:worker_processes 4;worker_cpe_affinity 0001 0010 0100 1000worker_rlimit_nofile 51200;events {use
Time of Update: 2018-12-05
CSS之所以會如此流行,是它具備以下的優點 1、符合W3C標準。保證網站不會因為將來網路應用的升級而被淘汰。 2、支援瀏覽器的向後相容,也就是無論未來的瀏覽器大戰,勝利的是IE、chrome或者是Firefox,網站都能很好的相容。 3、搜尋引擎更加友好。相對與傳統的table, 採用DIV+CSS技術的網頁,更加容易被搜尋引擎找到。
Time of Update: 2018-12-05
目的:緩衝nginx伺服器的靜態檔案。如css,js,htm,html,jpg,gif,png,flv,swf,這些檔案都不是經常更新。便於緩衝以減輕伺服器的壓力。實現: nginxproxy_cache可以將使用者的請緩衝到本地一個目錄,當下一個請求時可以直接調取快取檔案,就不用去後端伺服器去取檔案了。配置: 開啟設定檔/etc/nginx/nginx.confuser www www;worker_processes
Time of Update: 2018-12-05
首先轉載一個靜態方法web系統中免不了要使用大量的javascript和css檔案,如開源的javascript架構prototype、jquery、extjs-core等等,這些js架構,少都有幾百K,我曾經做過不少項目,都用了大量的js。特別是extjs,功能實在是強大,卻也是體積最大的一個js架構。使用中稍不留神很容易導致你的系統反映緩慢。為了提高js、css檔案的下載速度,從而提高頁面的響應速度,減小檔案的大小才是終極之道。減少這些檔案的大小已經有了不少的js壓縮公用程式可以做到,。在這
Time of Update: 2018-12-05
:html+css代碼:html+css 1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>井字形表格</title> 6 <style
Time of Update: 2018-12-05
<style type="text/css"> #writeBox{background:#000;color:#fff;font-size:12px;line-height:20px;border:1px solid #ddd;padding:10px;} </style> color:<input type="text" id="color"> op:<input type="text" id="op" value="" /
Time of Update: 2018-12-05
看了一下google的html、css代碼規範,簡單的作下記錄。一、省略ur地址中的 http: 或 https: 的部分 , 在引用樣式表檔案、指令檔、圖片以及其它媒體檔案時,都可以這樣做,除非使用這兩種協議都無法擷取到資源,也就是說必須使用其它協議才能擷取到資源的,就不能省略啦,只有http:和https:是可以省略的。這樣做的好處是能減少檔案的體積,而且還能避免一些相對url中混亂問題的產生。<!-- 不推薦 --><script
Time of Update: 2018-12-05
/* 最小寬度 */.min_width{min-width:300px;/* sets max-width for IE */ _width:expression(document.body.clientWidth < 300 ? "300px" : "auto");}/* 最大寬度 */.max_width{max-width:600px;/* sets max-width for IE */ _width:expression(document.body.clientWidth
Time of Update: 2018-12-05
1.超連結訪問過後hover樣式就不出現的問題代碼:<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN" “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"> <head
Time of Update: 2018-12-05
文章目錄 New (Dec 26th, 06'): The following are a collection of CSS Frames layouts, where select columns or rows inside the layout remain static even when the page is scrolled, mimicking a frames like behavior.CSS Left
Time of Update: 2018-12-05
1. 回顧上一篇文章,將webconfig中的設定介紹了下,為我們在擷取資料處理的時候,打好了紮實的基礎,現在我們我們來詳細講講“RemoteCallHandler”這個類。2.
Time of Update: 2018-12-05
今天碰到了td文字內容不換行,發現是:white-space: nowrap,即強制文本不進行換行,順便看了一下文本換行的屬性word-wrap,總結如下: white-space的預設只是normal,自動換行。 word-break:break-all和word-wrap:break-word表示強制換行,前者若英文字元過長自動截斷,後者整個英文單詞會換行! 而而我常會這樣用: word-wrap:break-word; overflow:hidden; IE 下沒有任何問題,在 FF 下,
Time of Update: 2018-12-05
css——之三行三列等高格局. (2011-07-23 05:23:42)轉載▼標籤:雜談第一步:創立一個構造 xhtml開始於header, footer, and container <div id="header"></div> <div id="container"></div> <div id="footer"></div> CSS先定義container,給即將加入的sideleft,
Time of Update: 2018-12-05
有陰影的字型: test Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><font style="filter: glow color=Green,strength=1; height:10px; color:white; padding:1px">test</font>test Code highlighting
Time of Update: 2018-12-05
學習css的過程中,研究別人的良好的xhtml結構及css是最好的學習方法 <!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> new
Time of Update: 2018-12-05
在進行頁面的DIV+CSS排版時,遇到IE6(當然有時Firefox下也會偶遇)瀏覽器中的圖片元素img下出現多餘空白的問題絕對是常見的對於該問題的解決方案也是“見機行事”,根據原因的不同要用不同的解決方案,這裡把解決直接把解決image圖片布局下邊的多餘空隙的BUG的常用方法歸納,供大家參考。方法整理來源於萬福的網路。1、將圖片轉換為塊級對象即,設定img為:display:block;在本例中添加一組CSS代碼:#sub img
Time of Update: 2018-12-05
8.固定式頁面腳在網頁裡添加固定的頁尾其實非常簡單,並且也很實用。有些網站的頁尾設計得很漂亮,可以給網站呈現出一個完美的結尾。#footer { position: fixed; left: 0px; bottom: 0px; height: 30px; width: 100%; background: #444; } /* IE 6 */* html #footer { position: absolute; top:
Time of Update: 2018-12-05
.clearfix:after{ content:"."; display:block; height:0; line-height:0; clear:both; visibility:hidden;}.clearfix{display:inline-block;}/* Hide from IE Mac */.clearfix{display:block;}/* End hide from IE Mac *//* end of clearfix */ 例子:<div
Time of Update: 2018-12-05
CSS代碼<style type="text/css"> .Freezing {}{ position:relative ; table-layout:fixed; top:expression(this.offsetParent.scrollTop); z-index: 10; } .Freezing th{}{text-overflow:ellipsis;overflow:hidden;white
Time of Update: 2018-12-05
在當今使用者的顯示器越來越大的今天,之前的1024*768固寬布局有點越來越不合時宜,對大螢幕的使用者而言,兩側空空的留白給人第一眼的印象是嚴重的螢幕浪費,作為網頁設計師的你有責任給這一批使用者一個良好的使用者介面。當然為了減少這種螢幕的浪費,採用彈性流體布局是最好的解決方案,它可以充分利用螢幕空間,無論你是多大分辯率的使用者,都能盡情滿屏展示內容。然而因為種種限制,目前的網頁完全採用流體彈性布局條件還不具備(特別是瀏覽器廠商對標準的肆意蹂躪以及CSS標準的不完全支援等等)。作為夾在使用者和廠商