动态创建table跨浏览器的问题。
时间:2010-08-24
来源:互联网
<html>
<head>
<script type="text/javascript">
var calendar_week = new Array(str_sun,str_mon,str_tue,str_wed,str_thu,str_fri,str_sat);
function OnGenSchedule(bg_div, title,first)
{
var title_div = 0;
var tick_div = 0;
var schedule_div = 0;
var strInnerHTML = "";
var strSubInnerHTML = "";
//创建标题
title_div = document.createElement("div");
title_div.style.cssText = "left:0px;top:0px;border:solid 1px;height:15px;width:63px;position:absolute;text-align:center";
title_div.innerHTML = title;
strInnerHTML += title_div.outerHTML;
if(g_schuduleHTML == "")
{
//创建刻度
tick_div = document.createElement("div");
tick_div.style.cssText = "left:65px;top:0px;width:672px;height:16px;position:absolute";
var tick_cell_div = document.createElement("div");
strSubInnerHTML = "";
for(var i = 0; i < 672; i += 112)
{
tick_cell_div.style.cssText = "width:112px;height:16px;top:0px;position:absolute;z-index:2;border-right:solid 1px;border-top:solid 1px;text-align:left;";
tick_cell_div.style.left = i + "px";
tick_cell_div.innerText = " " + AlignTime(i / 28) + ":00";
strSubInnerHTML += tick_cell_div.outerHTML;
}
tick_div.innerHTML = strSubInnerHTML;
g_schuduleHTML += tick_div.outerHTML;
//创建排程设置区域
schedule_div = document.createElement("div");
schedule_div.style.cssText = "left:64px;top:16px;width:672px;height:20px;position:absolute;border:solid 1px";
var schedule_item_div = 0;
schedule_item_div = document.createElement("div");
schedule_item_div.style.cssText = "width:7px;height:20px;top:0px;position:absolute;background-color:#e0e0e0;z-index:1";
schedule_item_div.onmouseover = "OnDragging(this)";
schedule_item_div.onmousedown = "OnStartSchedule(this)";
strSubInnerHTML = "";
for(var i = 0; i < 672; i += 7)
{
schedule_item_div.style.left = i + "px";
strSubInnerHTML += schedule_item_div.outerHTML;
}
schedule_div.innerHTML = strSubInnerHTML;
g_schuduleHTML += schedule_div.outerHTML;
}
//创建时间选择提示框
var time_tip_div = document.createElement("div");
time_tip_div.style.cssText = "left:0px;top:16px;border:solid 1px;height:20px;width:63px;position:absolute;text-align:center;background-color:#CCBBFF;display:none;";
time_tip_div.innerHTML = "";
strInnerHTML += time_tip_div.outerHTML;
strInnerHTML += g_schuduleHTML;
bg_div.innerHTML = strInnerHTML;
}
</script>
</head>
<body>
<div>
<div class = "tip_div">
<div class = "tip_img"></div>
<span id = "sch_errortips" class = "tip_span"></span>
</div>
<div class = "dash_line"></div>
<div class = "save_bar">
<input id = "default_btn" type = "button" value = "Default" class = "cfg_save_btn" onclick="LoadDefaultCfgSchedule()"/>
<input id = "save_btn" type = "button" value = "Save" class = "cfg_save_btn" onclick = "OnSaveConfig();" />
</div>
<ul class = "list_ul">
<div id = "sch_schdule_label" class = "head_div">Schedule</div>
<li>
<table border = "1" class = "main_table" style ="width:750px; height:400px;">
<tr>
<td style ="width:550px;">
<select name = "channelIndex" id = "schChannelIndex" style ="width:540px;" onchange = "OnchangeChannel(this)">
</select>
</td>
<td align = "center">
<img id = "img_sch_draw" src = "res/draw2.png" alt = "" onclick = "OnSetDrawMode(false)" />
<img id = "img_sch_erase" src = "res/erase1.png" alt = "" onclick = "OnSetDrawMode(true)" />
</td>
</tr>
<tr>
<td id = "sch_label" colspan="3" style="border-bottom:solid 1px black; font-weight:bold;text-align:center;">week schedule</td>
</tr>
<tr style="height:30px; padding:0;">
<td colspan="3" style="border:none;">
<div id="schedule_time_tip" style="border:solid 1px;height:20px;line-height:20px;width:150px;text-align:center;background-color:#CCBBFF;display:none;"></div>
</td>
</tr>
<tr>
<td colspan="3" style="border-bottom:solid 1px black; margin:0; padding:0;">
<table>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div0" style ="height:40px;position:absolute;"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div1" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div2" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div3" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div4" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div5" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div6" style ="height:40px;position:absolute"></div></td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
OnGenSchedule(schedule_div0, calendar_week[0]);
OnGenSchedule(schedule_div1, calendar_week[1]);
OnGenSchedule(schedule_div2, calendar_week[2]);
OnGenSchedule(schedule_div3, calendar_week[3]);
OnGenSchedule(schedule_div4, calendar_week[4]);
OnGenSchedule(schedule_div5, calendar_week[5]);
OnGenSchedule(schedule_div6, calendar_week[6]);
</script>
</body>
</html>
OnGenSchedule用来创table里面的东西的。现在的问题是:
在safari上面显示的效果最后一个div (schedule_div6)上面的东西超出了table的bottom。如果table的高度设置了,这个问题可以解决,但是schedule_div0显示的效果:上边框离table的距离太大,很难看。不知道如何解决。
希望可以支持ie6,7,8和safari
作者: blandyzld 发布时间: 2010-08-24
作者: WebAdvocate 发布时间: 2010-08-24
作者: WebAdvocate 发布时间: 2010-08-24
作者: blandyzld 发布时间: 2010-08-24
给我一个它生成的页面就行
作者: WebAdvocate 发布时间: 2010-08-24
<html>
<head>
<style type="text/css">
*{margin:0;padding:0;}
div,table,tr,td,input,img,ul,label{margin:0; padding:0;}
body {font-size:12px; font-family:Tahoma,Verdana;}
img{ border:0;cursor:pointer;}
a{text-decoration:none;}
/*public*/
.head_div{width:150px; color:White; background:url(res/list_head.png) no-repeat left top; height:27px; margin-top:20px; line-height:27px; padding-left:5px;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='res/list_head.png');_background-image:none; /*IE6*/}
/*.main_table{border-collapse:collapse; border:solid 1px gray;}*/
.main_table{border-collapse:collapse; border:solid 1px #000;} /*zld 2010/8/16*/
.tip_div{width:750px; height:40px; margin:10px 0 0 15px; position:relative;}
.tip_img{width:40px; height:40px; background-image:url(res/save_tip.png); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='res/save_tip.png');_background-image:none;}
.tip_span{ width:710px; height:40px; line-height:40px; font-size:17px; position:absolute; left:40px; top:0;}
.save_bar{width:750px; height:27px; border:0; margin:5px 0 10px 15px; padding:0; background-color:#AFD5FA;}
.cfg_save_btn{border:0; float:right; height:27px; background-color:Transparent; margin:0; padding:0;cursor:pointer; width:110px;}
.dash_line{width:750px; height:1px; margin-left:15px; padding:0; margin-top:5px; border-top:dashed 1px #72B1FF;}
.list_ul{margin-left:15px; list-style-type:none;}
.label {width:287px;}
.data {width:440px;}
.input_text {width:437px;}
.td_select {width:441px;}
select {width:100px;}
input {width:65px;}
/*#id_live_cfg input,#id_sensor_alarm input,#id_alarm_out input,#preset_info input,#cruiseName{overflow:visible;}*/
/*config && info common css*/
#div_config_body td,#div_info_body td,#div_advance_body td {height:26px; padding:0 5px;}
/*td border visible*/
#div_config_body td,
#div_info_body td,
#event_list td,
#pb_file_list td,
#file_list td,
#advance_diskm_table td,#advance_upgrade_table td
{border:solid 1px gray;}
/*td border invisible*/
#other_alarm_trigger_out td,
#motion_trigger_out td,#motion_trigger_record td,
#sensor_trigger_out td,#sensor_trigger_record td,
#user_authority td,#user_record_auth td,
#vloss_trigger_out td,
#id_log_type td,#info_log_sdate_span td,#info_log_edate_span td,
#id_event_channel td,#info_event_sdate_span td,#info_event_edate_span td,
#user_playback_auth td,#user_backup_auth td,#user_ptzctrl_auth td,#user_remoteview_auth td,#user_localview_auth td,
#user_auth_group td,
#pc_time td,#dst_start_date_time td,#dst_end_date_time td
{border:0;}
作者: blandyzld 发布时间: 2010-08-24
/*90px btn*/
#sensor_copy_button,#vloss_copy_button,#sch_copy_buttom,
#motion_trigger_ok_button,#motion_trigger_cancel_button,#sensor_trigger_ok_button,#sensor_trigger_cancel_button,#osd_position_ok,#osd_position_cancel,
#vloss_trigger_ok_button,#vloss_trigger_cancel_button,
#Preset_btn_ok_group input,#cruise_btn_group input,
#btn_group_add input,#btn_group_modify input,#btn_group_modpwd input,/*user_cfg ok cancel*/
#file_checkall_button,#file_checknull_button,#file_inverse_button,/*file_manager 60px btn*/
#backup_select_all,#backup_select_null,#backup_select_invert,/*backup*/
#file_del_button,#file_lock_button,#file_unlock_button,#backup_browse_buttom,
#live_snap_browse_btn,#play_snap_browse_btn,#local_rec_browse_btn,#advanced_update_browse_btn,#advanced_update_btn,
#user_button_group input,
#backup_backup_buttom,#backup_stopbackup_buttom,
#btn_osd_position,#btn_stamp_position,
#advance_diskm_btn_group input,#advance_upgrade_btn_group input,#upgrade_refresh_btn,
#export_button,#path_browse_button,#export_btn,#import_btn,#config_browse,#export_browse
{width:90px; height:25px; border:0; background:url(res/90x25_btn.jpg) no-repeat left top;cursor:pointer;}
/*145px btn*/
#id_ptz_advance input,
#motion_area_markall_button,#motion_area_marknone_button,#motion_area_invertmark_button,
#btn_record_trace,
#update_now_label,#modify_time_now_label,
#btn_record_trace_stop,
#vloss_trigger_btn,
.preset_set_btn
{width:145px; height:25px; border:0; background:url(res/145x25_btn.jpg) no-repeat left top;cursor:pointer;}
/*60px btn*/
#motion_copy_button,/*motion*/
#pppoe_test_btn,#ddns_test_btn,
#net_mail_test_btn
{width:60px; height:25px; border:0; background:url(res/60x25_btn.jpg) no-repeat left top;cursor:pointer;}
/*canlendar css*/
#info_event_sdate_span td,#info_event_edate_span td,
#info_log_sdate_span td,#info_log_edate_span td,
#div_calendar_schedule td,#pc_time td,#dst_start_date_time td,#dst_end_date_time td,
#timesearch_sdate_span td{padding:0 1px;height:auto;}
#sel_date{border-width :1px 0 1px 1px;border-style:solid;width:170px;text-align:center;cursor: pointer;}
#sel_date_right{width: 15px; border-width:1px 1px 1px 0;border-style:solid;margin-left:-8px; display:inline;}
.pickerImg {position: absolute;margin-left: -23px;margin-top: 5px;cursor: pointer;display:inline;}
/*search backup tr height*/
#div_file_list tr,#div_event_list tr,#file_list tr{height:20px;}
#log_info_table td,#event_info_table td,#online_user_table td,/*info tabel line-height*/
#advance_diskm_table td,#advance_upgrade_table td
{
height:22px;
text-overflow:ellipsis;
white-space:nowrap;
overflow:hidden;
}
#play_channel_table tr,#file_manager_channel tr,#div_backup_channel tr{height:24px;} /*zld 2010/8/16 添加#file_manager_channel tr #div_backup_channel tr*/
/*user auth*/
#user_authority td,#user_record_auth td,#user_playback_auth td,#user_backup_auth td,#user_ptzctrl_auth td,#user_remoteview_auth td,#user_localview_auth td,
#motion_trigger_out td,#motion_trigger_record td,
#sensor_trigger_out td,#sensor_trigger_record td,
#vloss_trigger_out td{width:175px;}
/*info*/
#id_event_type label,
#id_log_type td
{
margin:0;
padding:0;
text-overflow:ellipsis;
white-space:nowrap;
overflow:hidden;
}
#id_log_type input{margin:0px; padding:0px;width:20px;}
/*#id_event_channel td{padding:0;}info channel check td*/
/*config preset table css*/
#preset_info input{ height:25px; line-height:25px; margin:0; padding:0;}
#preset_info tr{height:27px;}
.presetname_input{width:400px;}
/*data box css*/
.multiEditInput input{border:0px;font-size:13px;height:16px;line-height:16px;width:24px;background:transparent;text-align:center;}
.multiEditInputDisabled input{border:0px;font-size:13px;height:16px;line-height:16px;width:24px;background:#D4E8FE;text-align:center;}
/*backup*/
#div_backup{background-color:#F4F7FE; height:560px; width:710px; border:solid 1px #000;margin:20px 0 0 10px; padding:10px 0 0 10px; text-align:left;}
#file_list{margin-bottom:10px; text-align:center; width:700px;}
#backup_list_page{width:300px; height:25px; line-height:25px;float:left; text-align:center;}
#div_file_path{width:680px;height:26px;padding :0 10px; margin-top:10px;}
#backup_filepath_label{width:80px; height: 26px; line-height:26px; float:left; text-align:left;}
#div_backup_search{position:absolute; left:745px; top:20px; text-align:center; width:220px; height:570px;background-color:#F4F7FE; border:solid 1px #000;}
.f_left{float:left; margin-right:3px;}
.f_right{float:right; margin-left:3px;}
/*search channel divsion css*/
#sguide,#sguide1 {position:relative;border-bottom:solid 1px #000; height:43px; font-size:12px; width:210px;}
#sguidelist,#sguidelist1 {position:absolute; height:44px;line-height:44px; border:0;left:0px;top:0px; border-right:solid 1px black;}
#sguidelist a,#sguidelist1 a{padding:0;display:block; float:left;text-align:center;background:#F6F6F6; width:45px; height:43px; text-decoration:none;}
#sguidelist a.on, #sguidelist1 a.on{height:44px;}
#content,#content1 { border:solid 1px #000; border-top:0; border-bottom:0; width:208px; background-color:#D4E9FE;}
.user_gen_table td,
#div_backup_channel td,
#id_event_channel td,
#file_manager_channel td,
#motion_trigger_record td,
#sensor_trigger_out td,#sensor_trigger_record td,
#vloss_trigger_out td,
#user_playback_auth td,#user_backup_auth td,#user_ptzctrl_auth td,#user_remoteview_auth td,#user_record_auth td,#user_localview_auth td,
{ border:solid 1px gray; border-left:none; border-right:none; padding:2px;}
#play_channel_table td,#play_channel_table_2 td,#file_manager_channel td,#div_backup_channel td{border-bottom:solid 1px #000;} /*zld 2010/8/16 添加#file_manager_channel td #div_backup_channel td,*/
#user_auth_group td{padding:0;}
.user_check_tabel{border-collapse:collapse; border:solid 1px gray;margin:0px; width:346px;}
#first_stream_table td,#web_rec_table td{ height:20px;}
#event_list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
</style>
作者: blandyzld 发布时间: 2010-08-24
var g_schuduleHTML = "";
var g_vgaResolution;
var g_bChange=false;
var str_sun = "日";
var str_mon = "一";
var str_tue = "二";
var str_wed = "三";
var str_thu = "四";
var str_fri = "五";
var str_sat = "六";
var calendar_week = new Array(str_sun,str_mon,str_tue,str_wed,str_thu,str_fri,str_sat);
function OnGenSchedule(bg_div, title)
{
var title_div = 0;
var tick_div = 0;
var schedule_div = 0;
var strInnerHTML = "";
var strSubInnerHTML = "";
//创建标题
title_div = document.createElement("div");
title_div.style.cssText = "left:0px;top:0px;border:solid 1px;height:15px;width:63px;position:absolute;text-align:center";
title_div.innerHTML = title;
strInnerHTML += title_div.outerHTML;
if(g_schuduleHTML == "")
{
//创建刻度
tick_div = document.createElement("div");
tick_div.style.cssText = "left:65px;top:0px;width:672px;height:16px;position:absolute";
var tick_cell_div = document.createElement("div");
strSubInnerHTML = "";
for(var i = 0; i < 672; i += 112)
{
tick_cell_div.style.cssText = "width:112px;height:16px;top:0px;position:absolute;z-index:2;border-right:solid 1px;border-top:solid 1px;text-align:left;";
tick_cell_div.style.left = i + "px";
tick_cell_div.innerText = " " + AlignTime(i / 28) + ":00";
strSubInnerHTML += tick_cell_div.outerHTML;
}
tick_div.innerHTML = strSubInnerHTML;
g_schuduleHTML += tick_div.outerHTML;
//创建排程设置区域
schedule_div = document.createElement("div");
schedule_div.style.cssText = "left:64px;top:16px;width:672px;height:20px;position:absolute;border:solid 1px";
var schedule_item_div = 0;
schedule_item_div = document.createElement("div");
schedule_item_div.style.cssText = "width:7px;height:20px;top:0px;position:absolute;background-color:#e0e0e0;z-index:1";
schedule_item_div.onmouseover = "OnDragging(this)";
schedule_item_div.onmousedown = "OnStartSchedule(this)";
strSubInnerHTML = "";
for(var i = 0; i < 672; i += 7)
{
schedule_item_div.style.left = i + "px";
strSubInnerHTML += schedule_item_div.outerHTML;
}
schedule_div.innerHTML = strSubInnerHTML;
g_schuduleHTML += schedule_div.outerHTML;
}
//创建时间选择提示框
var time_tip_div = document.createElement("div");
time_tip_div.style.cssText = "left:0px;top:16px;border:solid 1px;height:20px;width:63px;position:absolute;text-align:center;background-color:#CCBBFF;display:none;";
time_tip_div.innerHTML = "";
strInnerHTML += time_tip_div.outerHTML;
strInnerHTML += g_schuduleHTML;
bg_div.innerHTML = strInnerHTML;
}
function AlignTime(strTime)
{
if(strTime.toString().length < 2)
{
return '0' + strTime;
}
return strTime;
}
</script>
</head>
<body>
<div>
<div class = "tip_div">
<div class = "tip_img"></div>
<span id = "sch_errortips" class = "tip_span"></span>
</div>
<div class = "dash_line"></div>
<div class = "save_bar">
<input id = "default_btn" type = "button" value = "Default" class = "cfg_save_btn" onclick="LoadDefaultCfgSchedule()"/>
<input id = "save_btn" type = "button" value = "Save" class = "cfg_save_btn" onclick = "OnSaveConfig();" />
</div>
<ul class = "list_ul">
<div id = "sch_schdule_label" class = "head_div">Schedule</div>
<li>
<table border = "1" class = "main_table" style ="width:750px; height:400px;">
<tr>
<td style ="width:550px;">
<select name = "channelIndex" id = "schChannelIndex" style ="width:540px;" onchange = "OnchangeChannel(this)">
</select>
</td>
<td align = "center">
<img id = "img_sch_draw" src = "res/draw2.png" alt = "" onclick = "OnSetDrawMode(false)" />
<img id = "img_sch_erase" src = "res/erase1.png" alt = "" onclick = "OnSetDrawMode(true)" />
</td>
</tr>
<tr>
<td id = "sch_label" colspan="3" style="border-bottom:solid 1px black; font-weight:bold;text-align:center;">week schedule</td>
</tr>
<tr style="height:30px; padding:0;">
<td colspan="3" style="border:none;">
<div id="schedule_time_tip" style="border:solid 1px;height:20px;line-height:20px;width:150px;text-align:center;background-color:#CCBBFF;display:none;"></div>
</td>
</tr>
<tr>
<td colspan="3" style="border-bottom:solid 1px black; margin:0; padding:0;">
<table>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div0" style ="height:40px;position:absolute;"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div1" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div2" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div3" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div4" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div5" style ="height:40px;position:absolute"></div></td>
</tr>
<tr style="height:40px; vertical-align:middle">
<td><div id = "schedule_div6" style ="height:40px;position:absolute"></div></td>
</tr>
</table>
</td>
</tr>
</table>
</li>
<div id = "sch_copy_label" class = "head_div">Copy setting</div>
<li>
<table border = "1" class = "main_table" style ="width:750px;">
<tr>
<td id = "sch_applay_label" style ="width:150px;">Applay setting to</td>
<td style ="width:400px;">
<select id = "cp_config_schedule" style ="width:400px;"></select>
</td>
<td align = "center">
<input type = "button" id = "sch_copy_buttom" value = "Copy" onclick = "schCopy(cp_config_schedule)"/>
</td>
</tr>
</table>
</li>
</ul>
<div class = "save_bar">
<input id = "default_btn1" type = "button" value = "Default" class = "cfg_save_btn" onclick="LoadDefaultCfgSchedule()"/>
<input id = "save_btn1" type = "button" value = "Save" class = "cfg_save_btn" onclick = "OnSaveConfig();" />
</div>
</div>
<script type="text/javascript">
OnGenSchedule(schedule_div0, calendar_week[0]);
OnGenSchedule(schedule_div1, calendar_week[1]);
OnGenSchedule(schedule_div2, calendar_week[2]);
OnGenSchedule(schedule_div3, calendar_week[3]);
OnGenSchedule(schedule_div4, calendar_week[4]);
OnGenSchedule(schedule_div5, calendar_week[5]);
OnGenSchedule(schedule_div6, calendar_week[6]);
</script>
</body>
</html>
作者: blandyzld 发布时间: 2010-08-24
<div id="schedule_div0" style="height:40px;position:absolute;"></div>
改为
<div id="schedule_div0" style="height:40px;position:relative;"></div>
然后,去掉main_table的高度,让table可以高度自适应
<table border="1" class="main_table" style="width:750px; height:400px;">
作者: WebAdvocate 发布时间: 2010-08-24
最好使用document.getElementById()来获取DOM对象;
作者: WebAdvocate 发布时间: 2010-08-24
作者: blandyzld 发布时间: 2010-08-24
见:http://topic.csdn.net/u/20100728/16/e10db11c-e212-4e10-83a2-df4ebbf7ccc7.html?25508
作者: WebAdvocate 发布时间: 2010-08-24
两外还有两个问题问问高手呵呵!
1.
tick_cell_div是一个div.
tick_cell_div.innerText = " " + "12:00";
在safari下不认识" " 这个空格,现在我要达到这个目的怎么办?
2.
td style='border:1px solid #0066FF; cursor:pointer;text_align:center; margin_top:2px;margin_bottom:2px; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:14px; color:#4477FF' align='center' title='关闭' onClick='HideElement(" + parentElem.id + ")'>X<\/td>";
这个意思其实想画一个显示“X”的关闭按钮,但是在ie8下却显示的不是X,应该如何处理?
作者: blandyzld 发布时间: 2010-08-24
2. 最好用图片代替 X
作者: WebAdvocate 发布时间: 2010-08-24
作者: blandyzld 发布时间: 2010-08-24
tick_cell_div.innerText = &nbps + "12:00";
tick_cell_div.innerText = "&nbps" + "12:00";
作者: blandyzld 发布时间: 2010-08-24
是
作者: WebAdvocate 发布时间: 2010-08-24
作者: WebAdvocate 发布时间: 2010-08-24
不知道怎么用?
tick_cell_div.innerText = &nbps; + "12:00"; //这个方法不能识别
tick_cell_div.innerText = "&nbps;" + "12:00"; //这个方法就把&nbps;一起显示了,而不空格。
作者: blandyzld 发布时间: 2010-08-24
是
不是&nbps;
作者: WebAdvocate 发布时间: 2010-08-24
哪一个都不行呀!
tick_cell_div.innerText = + "12:00";
作者: blandyzld 发布时间: 2010-08-24
作者: WebAdvocate 发布时间: 2010-08-24
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28