Time of Update: 2018-12-05
橫虛線 、豎虛線的製做橫虛線1<div style="width:1000;height:1;;border-top:1px dotted #000000"></div>2<s style="width:1000;height:1;border-top:1px dotted #000000"></s>3<b style="width:1000;height:1;border-top:1px dotted #000000"></b&
Time of Update: 2018-12-05
public static DataSet ConvertToDataSet<T>(IList<T> list) { if (list == null || list.Count <= 0) { return null; } DataSet ds = new DataSet(); DataTable dt = new DataTable(typeof(T).Name); DataColumn column; DataRow row;
Time of Update: 2018-12-05
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>Untitled</title> <script>var img=null;var maxfilesize = 1048576;var filePath;function checkimage(){ filePath = docume
Time of Update: 2018-12-05
最新全面相容ie6,ie7,ie8,ff,google網站最新的:http://www.chhua.com/web-note762 瀏覽器市場的混亂,給設計師造成很大的麻煩,設計的頁面相容完這個瀏覽器還得相容那個瀏覽器,本來ie6跟ff之間的相容是很容易解決的。加上個ie7會麻煩點,ie8的出現就更頭疼了,原來hack ie7的方法又不能用了,怎麼辦呢?第一種方法:還好,微軟提供了這樣一個代碼:<meta http-equiv="x-ua-compatible" content="ie=7
Time of Update: 2018-12-05
JS 上傳圖片 提前預覽功能 .NET <script>function yulan(){var fileext=document.form1.UpFile.value.substring(document.form1.UpFile.value.lastIndexOf("."),document.form1.UpFile.value.length) fileext=fileext.toLowerCase() if ((fileext!='.
Time of Update: 2018-12-05
在通過拼組sql語句來實現資料插入的利用中,我們很有可能會碰到需要插入大型資料的狀況,例如,在oracle中需要插入位元組數超過4000的欄位內容時,我們如果通過簡單的拼組sql語句來實現插入,明顯就會出現題目,而在sql server中卻無這個限制,個人嘗試了26w個字元的sql語句在sql server2005中執行,依舊可以插入資料,但是在oracle中插入超過4000個字元的內容則會報非常。 下面就此題目標解決辦法,做一下小結: 我們可以通過創立單獨的OracleCom
Time of Update: 2018-12-05
<!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><%-- 載入本地搜尋的樣式--%> <style type="text/css">
Time of Update: 2018-12-05
方法 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private void DrpLst(string filename, string node, DropDownList obj, string s) { XmlDocument XmlDoc = new XmlDocument(); int i;
Time of Update: 2018-12-05
接觸jQuery也有一段時間了,看了兩本關於jQuery的書了.《jQuery in Action》中文書名《jQuery實戰》這本書寫的確實好,看得我,晚上連睡意都沒了。還有一本《Learning jQuery》中文書名《jQuery 基礎教程》,說句實在話,這本書寫的不怎麼滴,沒有看《jQuery in Action》之前覺得挺好的,看了《jQuery in Action》後,覺得講的東西有些淺顯了些,不夠深入。我沒興趣的東西,他卻講了一大堆,其實就在網上下一外掛程式就搞定了的事情。
Time of Update: 2018-12-05
*使用GridView內建的ToolTip隱藏過長的資料 */ for (int j = 1; j < Gv_FAQ.Columns.Count; j++) { for (int i = 0; i < Gv_FAQ.Rows.Count; i++) { Gv_FAQ.Rows[i].Cells[j].ToolTip
Time of Update: 2018-12-05
排序Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
Net中FckEditor的配置和使用方法(含樣本源碼)
Time of Update: 2018-12-05
1.放一個label C#代碼 DataTable table = new DataTable(); repeater1.DataSource = table; repeater1.DataBind(); if (table.Rows.Count == 0)//或者 repAcctLedger.Items.Count == 0 { label1.
Time of Update: 2018-12-05
以前做程式時會經常用offsetleft這樣的東西,但沒有深研究它,因為我不做美工,樣式,層啊什麼的,交給他們做就OK。現在自己要搞這些東西了。所以研究了一下,結合自己所學和從網上找的比較有用的東西,看下面一,舉幾個說明一下1,scrollHeight:
Time of Update: 2018-12-05
筆記:DropDownList無限級分類(靈活控制顯示形式) 主要使用遞迴實現,資料庫結構:最終樣式: 1protected void Page_Load(object sender, EventArgs e) 2 { 3 if (!Page.IsPostBack) 4 { 5 BindDrpClass(); 6 } 7 } 8 //綁定頂級分類 9 private void BindDrpClass()10
Time of Update: 2018-12-05
模態表單重新整理父表單 Response.Write("<script>dialogArguments.location.href=dialogArguments.location.href;window.close();</script>"); 很暈啊,唯寫了上面一句話 ,我想很多人應該都沒有看明白吧~!呵呵。。。。忘了一點重要的,我今天上午用到的時候,才發現,原因在哪啊~在用window.showModelDialog("*.aspx",window,"設定參數");
Time of Update: 2018-12-05
既然是複雜的布局自然用到較多的div以及並列與嵌套。這就要我們在為它們命名的時候遵從一定的規定,以便於可讀性。下面先來看一張布局圖:這是三九健康網一個頻道的頁面,原本是很長的頁面,但為了說明問題,取了個完整配置樣式,而省去了中間的內容。我們可以把它看做是一個置中的頁面配置,這樣要實現整體置中,就需要一個div作為主要容器,我們把這個div命名為container.CSS樣式為: 程式碼#container{margin:0px
Time of Update: 2018-12-05
例如:下面是只顯示d1層的內容,d2層的內容隱藏起來<div id="d1" runat="server" >d1的內容</div><div id="d2" runat="server" style="display:none;">d2的內容</div>如果在後台操作時候,需要稍微改變一下前台的顯示,也是可以實現的,不需要在前台調試JS (當然JS是完全可以實現) 頁面中在加入一個 服務端的按鈕,在按鈕的事件中:
Time of Update: 2018-12-05
<script> function renc(obj, reg, inputStr) { var docSel = document.selection.createRange() if (docSel.parentElement().tagName != "INPUT") return false oSel = docSel.duplicate() oSel.text = "" var srcRange =
Time of Update: 2018-12-05
代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> <input onfocus=" this.style.imeMode='active' " /> <%--active 代表IME為中文--%> <input onfocus=" this.style.imeMode='inactive'