简体   繁体   English

如何更改TimeCircles的高度和宽度?

[英]How to change the height and width for TimeCircles?

How can I change the height and width of the circles, from the TimeCircles Javascript plugin? 如何从TimeCircles Javascript插件更改圆的高度和宽度?

The circles, without any code in css, are big and nice. 没有任何css代码的圈子很大很好。

I tried to make them smaller, using css, but it doesn't work if i just add: 我尝试使用css将它们缩小,但如果我只是添加它,它就不起作用:

#counter {
width:200px;
height:125px;
color:#444444;
margin:0 auto;
} 

How can I make them smaller? 我怎样才能让它们变小? What is the right code for them? 什么是正确的代码?

How can I make the circles responsive? 如何让圈子响应? If I make my screen smaller, they remain the same. 如果我将屏幕缩小,它们将保持不变。

I am using Bootstrap 3.1.1. 我正在使用Bootstrap 3.1.1。

If you're still stuck with this, I hope this will help: 如果你仍然坚持这一点,我希望这会有所帮助:

First of, the CSS you posted show work fine (assuming that that CSS exists before the TimeCircles are created). 首先,你发布的CSS显示工作正常(假设在创建TimeCircles之前存在CSS)。

As for making them responsive; 至于使他们反应灵敏; you can force TimeCircles to rebuild itself: 你可以强制TimeCircles重建自己:

$("#Counter").TimeCircles().rebuild();

In this process, TimeCircles rebuilds itself in with the appropriate dimensions. 在此过程中,TimeCircles使用适当的维度重建自身。

If you want it to resize it self every time the screen resizes, you can put that code inside: 如果您希望每次屏幕调整大小时自己调整大小,您可以将该代码放入:

$(window).resize(function(){
   // resize ....
});

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

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