Why put this time on the left! ! !
Let the word time be displayed on the left, not on the right. My code is as follows:
Time |
Put the td corresponding to the time in front
function show() { var tr=document.getElementById("id"); for(time=23;time>=0;time--){ var cell=document.createElement("td"); cell.innerHTML=time+":00"; tr.appendChild(cell); } }
Just float it left