温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:简单实用的个人Blog站点源码
当前文件:
personalBlog/admin/ftb.inserttable.aspx[3K,2009-6-12 11:51:58],打开代码结构图
personalBlog/admin/ftb.inserttable.aspx[3K,2009-6-12 11:51:58],打开代码结构图1<%@ Page language="c#" %> 2
<script runat="server"> 3
4
private void Page_Load(object sender, System.EventArgs e) { 5
} 6
7
</script> 8
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" > 9
<HTML> 10
<HEAD> 11
<META HTTP-EQUIV="Expires" CONTENT="0"> 12
<title>插入表格</title> 13
<style> 14
15
body { 16
margin: 0px 0px 0px 0px; 17
padding: 0px 0px 0px 0px; 18
background: #ffffff; 19
width: 100%; 20
overflow:hidden; 21
border: 0; 22
} 23
24
body,tr,td { 25
color: #000000; 26
font-family: Verdana, Arial, Helvetica, sans-serif; 27
font-size: 10pt; 28
} 29
</style> 30
31
32
<script language="javascript"> 33
function returnTable() { 34
var arr = new Array(); 35
36
arr["width"] = document.getElementById('Width').value; 37
arr["height"] = document.getElementById('Height').value; 38
arr["cellpadding"] = document.getElementById('Cellpadding').value; 39
arr["cellspacing"] = document.getElementById('Cellspacing').value; 40
arr["border"] = document.getElementById('Border').value; 41
42
arr["cols"] = document.getElementById('Columns').value; 43
arr["rows"] = document.getElementById('Rows').value; 44
arr["valigncells"] = document.getElementById('VAlignCells')[document.getElementById('VAlignCells').selectedIndex].value; 45
arr["haligncells"] = document.getElementById('HAlignCells')[document.getElementById('HAlignCells').selectedIndex].value; 46
arr["percentcols"] = document.getElementById('PercentCols').checked; 47
48
window.returnValue = arr; 49
window.close(); 50
} 51
</script> 52
</HEAD> 53
<body> 54
<table width=100% cellpadding=1 cellspacing=3 border=0> 55
<tr><td valign=top> 56
<fieldset ><legend>表格</legend> 57
<table width=100% height=100% cellpadding=0 cellspacing=0 border=0> 58
<tr> 59
<td>宽度</td> 60
<td><input type=text id="Width" name="Width" value=100 style="width:50px;"></td> 61
</tr><tr> 62
<td>高度</td> 63
<td><input type=text id="Height" name="Height" value=100 style="width:50px;"></td> 64
</tr><tr> 65
<td>单元格边距</td> 66
<td><input type=text id="Cellpadding" name="Cellpadding" style="width:50px;" value=0></td> 67
</tr><tr> 68
<td>单元格间距</td> 69
<td><input type=text id="Cellspacing" name="Cellspacing" style="width:50px;" value=0></td> 70
</tr><tr> 71
<td>边框粗细</td> 72
<td><input type=text id="Border" name="Border" style="width:50px;" value=1></td> 73
</tr> 74
</table> 75
</fieldset> 76
</td> 77
<td> </td> 78
79
<td valign=top> 80
<fieldset ><legend>单元格</legend> 81
<table width=100% height=100% cellpadding=0 cellspacing=0 border=0> 82
<tr> 83
<td>列数</td> 84
<td><input type=text id="Columns" name="Columns" style="width:80px;" value=2></td> 85
</tr><tr> 86
<td>行数</td> 87
<td><input type=text id="Rows" name="Rows" style="width:80px;" value=2></td> 88
</tr><tr> 89
<td>垂直对齐方式</td> 90
<td><select id="VAlignCells" name="VAlignCells" style="width:80px;"> 91
<option>默认</option> 92
<option value="top">顶端对齐</option> 93
<option value="center">相对垂直居中</option> 94
<option value="bottom">相对底边对齐</option> 95
</select> 96
</td> 97
</tr><tr> 98
<td>水平对齐方式</td> 99
<td><select id="HAlignCells" name="HAlignCells" style="width:80px;"> 100
<option>默认</option> 101
<option value="left">左对齐</option> 102
<option value="center">居中</option> 103
<option value="right">右对齐</option> 104
</select> 105
</td> 106
</tr><tr> 107
<td>平均分配各列</td> 108
<td><input type="checkbox" id="PercentCols" name="PercentCols" value="1"></td> 109
</tr> 110
</table> 111
</fieldset> 112
</td></tr> 113
<tr><td colspan=3 align=center> 114
<input type="button" onclick="returnTable();return false;" value="插入表格"> 115
</td></tr> 116
</table> 117
118
</body> 119
</html> 120





private
}

