3月13号工作

今天的工作
1、完成了修改浮层的值可以修改DIV的值
1、1在JS中定义事件在 首先获得到每个单元格的ID在把浮层的值赋值给单元格的值
document.getElementById("submit_buttons").onclick = function()
{
    document.getElementById("0txt"+hour+"txt"+i).value =document.getElementById("id_txt").value;

2、完成了1对1的DIV、浮层 1的浮层的值不会跑到2DIV里去
2、1通过循环获得每个单元格的值在写的时间要加上px和offsetTop offsetLeft是获得指定的坐标
if(document.getElementById("0tr"+hour+"td"+i))
{
    document.getElementById("id_class").style.top =document.getElementById("0tr"+hour+"td"+i).offsetTop + 60 +"px";
    document.getElementById("id_class").style.left =document.getElementById("0tr"+hour+"td"+i).offsetLeft + -80 +"px";
}
else(document.getElementById("1tr"+hour+"td"+i))
{
    document.getElementById("id_class").style.top =document.getElementById("1tr"+hour+"td"+i).offsetTop + 60 +"px";
    document.getElementById("id_class").style.left =document.getElementById("1tr"+hour+"td"+i).offsetLeft + -80 +"px";
}
问题
就是怎么把DIV的日期和时间放进去浮层里

今天的单词
[1] arounda /e'raund/ 周围
[2]dread /bred/ 面包
[3]brown /braun/ 棕色的

猜你喜欢

转载自xjwolaile.iteye.com/blog/1829028