I've created a page with CSS. Now I must change from my editor to my browser and refresh the full page, just to have a look at every little change. But I don't want to refresh the page, because I have some animations.

那么,在CSS更新之后,我的网站是否可以自动更新

推荐答案

给你:http://cssrefresh.frebsite.nl/

CSSrefresh is a small, unobstructive javascript file that monitors the CSS-files included in your webpage. As soon as you save a CSS-file, the changes are directly implemented, without having to refresh your browser.

Just insert the javascript file and it works!

But note: It only works when you have the files on a server!


编辑:LiveStyle

If you develop with Sublime Text and Google Chrome or Apple Safari, then you should use Emmet LiveStyle. This is a more powerful Live CSS-Reloader.
Now I use it instead of CSS Refresh.

如果你想了解更多关于这个很棒的插件的信息,请阅读Post by Smashing Magazine

Jquery相关问答推荐

在不同的行插入不同的值

ASP.NET MVC - Ajax 将空值传递给控制器

如何使用 jQuery 强制悬停状态?

$.post 和 $.ajax 之间的区别?

如何用 javascript/jquery 替换 url 参数?

jQuery 绑定点击 *ANYTHING* 但 *ELEMENT*

如何正确卸载/销毁 VIDEO 元素

如何使用 JQuery 发布 JSON 数据?

jQuery scrollTop 在 Chrome 中不工作但在 Firefox 中工作

jQuery.parseJSON 与 JSON.parse

jQuery用另一个类替换一个类

使用jquery设置di​​v标签的值

Jquery 和 HTML FormData 返回未捕获的 TypeError:非法调用

jquery变量语法

点击时保持 Bootstrap 下拉菜单打开

jQuery:如何找到第一个可见的输入/ Select /文本区域,不包括按钮?

如何在新窗口中打开链接?

在jQuery中获取CSS规则的百分比值

javascript,是否有像 isArray 这样的 isObject 函数?

在页面加载之间保持变量