Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
¿Cómo disminuyo el tamaño de fuente de elementos específicos en un indicador de fecha?

Estoy creando un sitio web en html. Lo que quiero hacer es disminuir el tamaño de los contadores de horas, minutos y segundos, pero mantener el tamaño de los contadores de día, mes y año. Dividir los 2 en identificaciones separadas no parece funcionar y solo muestra el día, el mes y el año. Aquí está mi código:

 <html> <head><title>My website</title> <style type=text/css> .clock {background-color: 000000; text-align: center; margin: 2px 0px 0px 1190px; font-size: 30px; position: fixed; border-radius: 10px; color: #fff; text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff; border: 5px solid white;} div {margin: 2px;} body {background-color: 0d0d0d; font-family: "Vibur", sans-serif;} </style> </head> <body> <p id="date" class="clock"></p> <script> setInterval(function(){ date = new Date(); sekundy = date.getSeconds(); if (sekundy<10) sekundy = "0"+sekundy; minuty = date.getMinutes(); if (minuty<10) minuty = "0"+minuty; godziny = date.getHours() if (godziny<10) godziny = "0"+godziny; dzien = date.getDay(); data = date.getDate(); miesiac = date.getMonth(); rok = date.getFullYear(); document.getElementById('date').innerHTML = data+"."+((miesiac+1)%12)+"."+rok+"<br>"+godziny+" : "+minuty+" : "+sekundy; },1000); </script> </body> </html>
Agradecería cualquier ayuda para resolverlo.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!