简体   繁体   English

将此倒数对准中间?

[英]Align this countdown to the middle?

I am using this jquery based countdown timer: http://www.gieson.com/Library/projects/utilities/countdown/ 我正在使用基于jquery的倒数计时器: http : //www.gieson.com/Library/projects/utilities/countdown/

I am wondering how I can get it to align in the middle? 我想知道如何使其在中间对齐?

I have tried putting it into a container div that has text-align center on it, which doesn't work. 我尝试将其放入具有文本对齐中心的容器div中,该方法不起作用。 What else can I try? 我还能尝试什么?

try applying margin:0 auto; 尝试应用margin:0 auto; to the container div 到容器div

Do this in the body: 在体内这样做:

<div align='center'>**countdown code (the one that should be in the body)**</div> 

It worked for me... 它对我有用...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM