Home > Web Front-end > HTML Tutorial > How to put the displayed time on the left? _html/css_WEB-ITnose

How to put the displayed time on the left? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:59:24
Original
1994 people have browsed it

Why put this time on the left! ! !


Reply to discussion (solution)

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);		}	}
Copy after login

Just float it left

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template