Home >Web Front-end >HTML Tutorial >How to put the displayed time on the left? _html/css_WEB-ITnose
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:
9c3bca370b5104690d9ef395f2c5f8d1
4ec11beb6c39d0703d1751d203c17053
var time = 23;
function show() {
var tr=document.getElementById("id" );
for(time=23;time>=0;time--){
var cell=tr.insertCell();
cell.innerHTML=time ":00";
}
}
2cacc6d41bbb37262a98f745aa00fbf0
19c593196eaf80b008c7ad0dacdb43ed
e250a3f15cdd83cbdbae9ebf57168797
d0e361d2f7b8223662af3eb3baa55128
b6c5a531a458a2e790c1fd6421739d1cTimeb90dd5946f0946207856a8a37f441edf
fd273fcf5bcad3dfdad3c41bd81ad3e5
f16b1740fad44fb09bfe928bcc527e08
dbf4a1b9d12965251b02d12dd197d73e
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