追求編程之美

          先做人,再做技術人員,最后做程序員。
          數據加載中……

          2009年6月4日

          css學習之背景

          CSS 允許應用純色作為背景,也允許使用背景圖像創建相當復雜的效果。CSS 在這方面的能力遠遠在 HTML 之上

          背景色

           

          可以使用background-color 屬性為元素設置背景色,這個屬性接受任何合法的顏色值。

          這條規則把元素的背景設為灰色:p{background-color :gray;}

          如果你希望背景色從元素中的文本向外至少有延伸,只需增加一些內邊框:p {background-color: gray; padding: 20px;}background-image 屬性的默認值是 none,表示背景上沒有放置任何圖像。

          背景圖像

          要把圖像放入背景,需要使用  background-image 屬性

          posted @ 2009-10-25 17:17 yanZhangWu 閱讀(194) | 評論 (0)編輯 收藏
          date_trunc函數的用法

          9.9.2. date_trunc

          The function date_trunc is conceptually similar to the trunc function for numbers.

           

          date_trunc('field', source)

          source is a value expression of type timestamp or interval. (Values of type date and time are cast automatically, to timestamp or interval respectively.) field selects to which precision to truncate the input value. The return value is of type timestamp or interval with all fields that are less significant than the selected one set to zero (or one, for day and month).

          Valid values for field are:

           

          microseconds
          milliseconds
          second
          minute
          hour
          day
          week
          month
          quarter
          year
          decade
          century
          millennium

           

           

          Examples:

          SELECT date_trunc('hour', TIMESTAMP '2001-02-16 20:38:40');
          Result: 2001-02-16 20:00:00
          SELECT date_trunc('year', TIMESTAMP '2001-02-16 20:38:40');
          Result: 2001-01-01 00:00:00

           

          posted @ 2009-07-24 07:02 yanZhangWu 閱讀(12957) | 評論 (0)編輯 收藏
          感情婚姻的五大需求


          1、最基本的需求 性
          2、跟你生活協調
          3、可以溝通的人
          4、互相信任
          5、可以互相學習

          posted @ 2009-06-20 09:55 yanZhangWu 閱讀(212) | 評論 (0)編輯 收藏
          unix 同時啟動兩個tomcat配置

          所用Tomcat服務器都為zip版,非安裝版。以兩個為例:

            安裝第二個Tomcat完成后,到安裝目錄下的conf子目錄中打開server.XML文件,查找以下三處:

            (1)修改http訪問端口(默認為8080端口)

            minProcessors="5"maxProcessors="75"

            enableLookups="true"redirectPort="8443"

            acceptCount="100"debug="0"connectionTimeout="20000"

            useURIValidationHack="false"disableUploadTimeout="true"/>

            (大概在86行左右)將8080修改為第一個tomcat不在使用的端口號。此處所設的端口號即是以后訪問Web時所用的端口號。

            (2)修改Shutdown端口(默認為8005端口)

            (大概在13行左右)將8005修改為沒有在使用的端口號,例如8095

            (3)修改8009端口

            

            

          <ConnectorclassName="org.apache.coyote.tomcat4.CoyoteConnector"port="8009"minProcessors="5"maxProcessors="75"enableLookups="true"redirectPort="8443"acceptCount="10"debug="0"connectionTimeout="20000"useURIValidationHack="false"protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
          

          http://www.mscto.com

            (大概在107行左右)將8009修改為沒有在使用的端口號,例如8099

            這樣就沒問題了。

          posted @ 2009-06-04 13:10 yanZhangWu 閱讀(515) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 萨迦县| 台中市| 灵璧县| 灵丘县| 溧阳市| 游戏| 九江县| 广灵县| 喀喇沁旗| 清远市| 丘北县| 田林县| 于田县| 静宁县| 乌什县| 肃宁县| 罗城| 体育| 伽师县| 清镇市| 武夷山市| 清水河县| 甘孜| 盐边县| 天峨县| 铁岭县| 沿河| 桦川县| 湾仔区| 红安县| 叶城县| 鸡西市| 广汉市| 精河县| 府谷县| 宝应县| 墨竹工卡县| 丰顺县| 克拉玛依市| 临猗县| 安达市|