Table of Contents
Reply to discussion (solution)
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

Jun 24, 2016 am 11:59 AM
left time show

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:
</head>
<script type="text/javascript">
var time = 23;
function show() {
var tr=document.getElementById("id" );
for(time=23;time>=0;time--){
var cell=tr.insertCell();
cell.innerHTML=time ":00";


}
}
</script>

<body onload="show()">
<table border="1">
<tr id="id">
<td>Time</td>
</tr>
</table>

</ body>

Put the td corresponding to the time in front

function show() {		var tr=document.getElementById(&quot;id&quot;);		for(time=23;time&gt;=0;time--){		var cell=document.createElement(&quot;td&quot;); 		cell.innerHTML=time+&quot;:00&quot;;		tr.appendChild(cell);		}	}
Copy after login

Just float it left

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How much does a Douyin level 10 light sign cost? How many days does it take to create a level 10 fan sign? How much does a Douyin level 10 light sign cost? How many days does it take to create a level 10 fan sign? Mar 11, 2024 pm 05:37 PM

How much does a Douyin level 10 light sign cost? How many days does it take to create a level 10 fan sign?

How to set the time for publishing works on Xiaohongshu? Is the time for publishing the work accurate? How to set the time for publishing works on Xiaohongshu? Is the time for publishing the work accurate? Mar 24, 2024 pm 01:31 PM

How to set the time for publishing works on Xiaohongshu? Is the time for publishing the work accurate?

How long does it take to clear the Elden Ring? How long does it take to clear the Elden Ring? Mar 11, 2024 pm 12:50 PM

How long does it take to clear the Elden Ring?

Reasons and solutions for desktop layout being locked Reasons and solutions for desktop layout being locked Feb 19, 2024 pm 06:08 PM

Reasons and solutions for desktop layout being locked

Detailed explanation of Linux file time viewing techniques Detailed explanation of Linux file time viewing techniques Feb 21, 2024 pm 01:15 PM

Detailed explanation of Linux file time viewing techniques

How to make a remote desktop connection display the other party's taskbar How to make a remote desktop connection display the other party's taskbar Jan 03, 2024 pm 12:49 PM

How to make a remote desktop connection display the other party's taskbar

How to adjust the time on gshock watch How to adjust the time on gshock watch Feb 21, 2024 pm 09:04 PM

How to adjust the time on gshock watch

Computer time is still inaccurate after adjustment Computer time is still inaccurate after adjustment Feb 19, 2024 pm 05:28 PM

Computer time is still inaccurate after adjustment

See all articles