Time of Update: 2015-02-07
標籤:【作者好人】:http://www.nowamagic.net/librarys/veda/detail/1190文檔流將表單自上而下分成一行行, 並在每行中按從左至右的順序排放元素,即為文檔流。每個非浮動區塊層級元素都獨佔一行, 浮動元素則按規定浮在行的一端。 若當前行容不下, 則另起新行再浮動。內嵌元素也不會獨佔一行。 幾乎所有元素(包括塊級,內聯和列表元素)均可產生子行, 用於擺放子項目。有三種情況將使得元素脫離文檔流而存在,分別是浮動,絕對位置, 固定定位。
Time of Update: 2015-02-06
標籤:加密 php md5 代碼 <body style="color:green;font-size:28px;background:black;font-family:Verdana, sans-serif;"><?php error_reporting(0);?><form name="c" action="<?php
Time of Update: 2015-02-06
標籤:1、下載一個jquery.js的檔案2、引入jquery.js檔案1 <script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>2 <script type="text/javascript">3 $(function(){4 5 //這裡面使用jquery的方法6 7 8 });9
Time of Update: 2015-02-06
標籤:The best way I can think of is to intercept the form-submit action, and convert the form details into XML format, and then submit that to the server. There are many ways to do this, but the easiest would be to implement a solution via a framework
Time of Update: 2015-02-06
標籤:今天做項目中,需要將文章點擊量顯示在頁面中,需求中給的是多少多少萬,雖然不是什麼難事,但做程式員這麼久了,需要考慮的不再是簡單的實現,而且有效率和快捷,雖然PHP內建的函數有number_format()可以做到實現千分位,但我要的是萬分位,通過尋找,發現了可以用以下這個方法:$num = 86231;# 將數字轉為萬分位echo $num>10000?sprintf("%.1f",
Time of Update: 2015-02-06
標籤:hibernate 主鍵策略 hashcode equals 一:運行上一篇文章的程式會發現,後台輸出兩個warn17:22:14,232 WARN RootClass:233 - composite-id class does not override equals(): com.hibernate.model.TeacherPK17:22:
Time of Update: 2015-02-06
標籤:android json http post HttpClient類比get,post請求並發送請求參數(json等)import java.io.IOException;import net.sf.json.JSONArray;import net.sf.json.JSONObject;import
Time of Update: 2015-02-06
標籤:hibernate報錯內容:17:21:59,843 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export 17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql 17:21:59,859
Time of Update: 2015-02-06
標籤:.net corefx coreclr 2014年底微軟印度籍CEO宣布了.Net跨平台開源計劃,沒想到他們的動作還很快,corefx和coreclr的代碼已經上傳到github了,對於.Net程式員來說絕對是一個福音。讀讀這些代碼絕對是提升水平的有效途徑。Github上的項目如下所示:我用sourcetree工具下載了代碼到本地檔案夾,如下所示:1.
Time of Update: 2015-02-06
標籤:css css知多少 上一節《css知多少(2)——學習css的思路》有幾個人留言表示思路很好、繼續期待,而且收到了9個贊,我還是比較欣慰的。沒看過的朋友建議先去看看上一節。 這一節就開始實踐上一節的思路!1. “層疊”的概念 CSS——層疊樣式表,其中的“層疊”是什麼意思呢?層疊就是瀏覽器對多個樣式來源進行疊加,最終確定結果的過程。舉一個簡單的例子:
Time of Update: 2015-02-06
標籤:<!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><meta
Time of Update: 2015-02-06
標籤:搜尋 printf math.h acm演算法 c Problem DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an
Time of Update: 2015-02-06
標籤:開始學習PHP,使用的是webmatrix構建的本機伺服器(這樣最簡單了,但也弄了好半天)。說起來webmatrix也確實夠簡單的了,只需要建立一個空網站,然後就可以在裡面開搞了。注意的是,啟動並執行時候可能會返回404,這是由於主站沒有預設頁面,預設頁面在網站的設定下面輸入,輸入想要的預設頁面就可以了。正式開始php了php的指令碼都是以<?php開始然後?>結束變數前全部要加上貨幣符號(還挺貪錢的):$(中文IME下竟然變成了¥)注意,php中變數也分為全域變數和局部變數,
Time of Update: 2015-02-06
標籤: 上一節《css知多少(2)——學習css的思路》有幾個人留言表示思路很好、繼續期待,而且收到了9個贊,我還是比較欣慰的。沒看過的朋友建議先去看看上一節。 這一節就開始實踐上一節的思路!1.
Time of Update: 2015-02-06
標籤:<!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><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2015-02-06
標籤:先下載相應的php檔案:http://files.cnblogs.com/files/tianguook/phpmailer.rar解壓後有2個php檔案(2個類) 1個html檔案(API)將2個php檔案放到php項目中簡述:我這裡是用一個163的郵箱發訊息給126的郵箱關鍵代碼如下:<?php require ‘class.phpmailer.php‘; $mail = new PHPMailer(true); //建立郵件發送類
Time of Update: 2015-02-06
標籤:轉載 http://blog.csdn.net/liruxing1715/article/details/7914974 PHPMailer 的官方網站:http://phpmailer.worxware.com/PHPMailer 最新類庫:【點擊下載】PHPMailer GitHub :https://github.com/Synchro/PHPMailer,該頁面也提供了使用例子,不過不是很全面。使用方法,詳見代碼清單: <?phpheader(‘
Time of Update: 2015-02-06
標籤:當使用css3時,會遇到利用@keyframes來定義動畫事件,利用以下3個事件,能夠捕捉當前元素的動畫:AnimationEnd //動畫結束時AnimationStart //動畫開始AnimationIteration
Time of Update: 2015-02-06
標籤:最近項目中有個需求, 要記錄新註冊使用者的次日登入情況, 於是寫出了如下代碼:$create_time = ‘使用者註冊時間‘; //格式 Y-m-d H:i:s$time = time(); $lasttime = date(‘Y-m-d H:i:s‘, $time); $current_day = floor($time / 86400);$create_day = floor( strtotime($create_
Time of Update: 2015-02-06
標籤:js實現 全選 不選 反選思路:1,擷取元素2,給全選 不選 反選添加點擊事件3,用for迴圈checkbox4,把checkbox的checked設定為true即實現全選5,把checkbox的checked設定為false即實現不選6,通過if判斷,如果checked為true選中狀態的,就把checked設為false不選狀態,如果checked為false不選狀態的,就把checked設為true選中狀態。 html代碼: <input