How to put the displayed time on the left? _html/css_WEB-ITnose
Jun 24, 2016 am 11:59 AMWhy 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("id"); for(time=23;time>=0;time--){ var cell=document.createElement("td"); cell.innerHTML=time+":00"; tr.appendChild(cell); } }
Just float it left

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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 long does it take to clear the Elden Ring?

Reasons and solutions for desktop layout being locked

Detailed explanation of Linux file time viewing techniques

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

How to adjust the time on gshock watch

Computer time is still inaccurate after adjustment
