complemento jquery-countdown, cambiando altura y ancho
Frecuentes
Visto 1,173 veces
-1
Estoy utilizando este plugin for a countdown clock
Its great, but I need it to be smaller, and when I adjust the height and the width of the code and PNG, everything gets thrown off. I change the height and width to the same ratio it was originally created in:
digitWidth: 67,
digitHeight: 90,
cambiado a:
digitWidth: 30,
digitHeight: 41,
And made change the PNG to a width of 30px as well. Is there anything else I can do so the numbers do not get all screwed up when I change the size?
1 Respuestas
1
mantener su
digitWidth:30px,
digitHeight:40.15px
and after you initialize the conter by the function
.countdown({});
agrega esta línea
$('.cntDigit').each(function(i,v){$(v).css('background-size','30px')})
hay un problema con el background-size
Respondido 31 ago 12, 15:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas jquery countdowntimer or haz tu propia pregunta.
The numbers still seem to be off, you can see a demo here: demo.omnigon.com/christian_bovine/bellatorbuild/countdown.html - Xiano
I found the sweet spot, the DigitHeight needs to be: 40.32px - Xiano