"); // 初始值 function InitDocument(){ SearchSelectValue(d_align, sAlign.toLowerCase()); SearchSelectValue(d_borderstyle, sBorderStyle.toLowerCase()); // 修改状态时取值 if (sAction == "MODI"){ if (sWidth == ""){ bWidthCheck = false; bWidthDisable = true; sWidthValue = "100"; sWidthUnit = "%"; }else{ bWidthCheck = true; bWidthDisable = false; if (sWidth.substr(sWidth.length-1) == "%"){ sWidthValue = sWidth.substring(0, sWidth.length-1); sWidthUnit = "%"; }else{ sWidthUnit = ""; sWidthValue = parseInt(sWidth); if (isNaN(sWidthValue)) sWidthValue = ""; } } if (sHeight == ""){ bHeightCheck = false; bHeightDisable = true; sHeightValue = "100"; sHeightUnit = "%"; }else{ bHeightCheck = true; bHeightDisable = false; if (sHeight.substr(sHeight.length-1) == "%"){ sHeightValue = sHeight.substring(0, sHeight.length-1); sHeightUnit = "%"; }else{ sHeightUnit = ""; sHeightValue = parseInt(sHeight); if (isNaN(sHeightValue)) sHeightValue = ""; } } } switch(sWidthUnit){ case "%": d_widthunit.selectedIndex = 1; break; default: sWidthUnit = ""; d_widthunit.selectedIndex = 0; break; } switch(sHeightUnit){ case "%": d_heightunit.selectedIndex = 1; break; default: sHeightUnit = ""; d_heightunit.selectedIndex = 0; break; } d_row.value = sRow; d_col.value = sCol; d_border.value = sBorder; d_cellspacing.value = sCellSpacing; d_cellpadding.value = sCellPadding; d_widthvalue.value = sWidthValue; d_widthvalue.disabled = bWidthDisable; d_widthunit.disabled = bWidthDisable; d_heightvalue.value = sHeightValue; d_heightvalue.disabled = bHeightDisable; d_heightunit.disabled = bHeightDisable; d_bordercolor.value = sBorderColor; s_bordercolor.style.backgroundColor = sBorderColor; d_bgcolor.value = sBgColor; s_bgcolor.style.backgroundColor = sBgColor; d_widthcheck.checked = bWidthCheck; d_heightcheck.checked = bHeightCheck; d_image.value = sImage; d_repeat.value = sRepeat; d_attachment.value = sAttachment; } // 判断值是否大于0 function MoreThanOne(obj, sErr){ var b=false; if (obj.value!=""){ obj.value=parseFloat(obj.value); if (obj.value!="0"){ b=true; } } if (b==false){ BaseAlert(obj,sErr); return false; } return true; } // 得到表格列数 function getColCount(oTable) { var intCount = 0; if (oTable != null) { for(var i = 0; i < oTable.rows.length; i++){ if (oTable.rows[i].cells.length > intCount) intCount = oTable.rows[i].cells.length; } } return intCount; } // 增加行 function InsertRows( oTable ) { if ( oTable ) { var elRow=oTable.insertRow(); for(var i=0; i
表格大小
表格行数: 表格列数:
表格布局
对齐方式: 边框粗细:
单元间距: 单元边距:
表格尺寸
指定表格的宽度
指定表格的高度
表格样式
边框颜色: 边框样式:
背景颜色: 背景图片: 设置背景图
  
广东11选5 广东11选5 广东11选5 广东11选5 花火彩票平台 广东11选5 状元彩票平台 小白彩票平台 南粤彩票平台 广东11选5