在无法访问FTP的实际网站上本地保存自定义HTML? [英] Saving custom HTML locally on live sites without FTP access?

查看:160
本文介绍了在无法访问FTP的实际网站上本地保存自定义HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们都知道,Firebug / Web Developer Toolbar等可以将任何页面的HTML / CSS改为本地机器。但是,刷新后,我们知道这些更改不会保存。

We all know that Firebug / Web Developer Toolbar, etc. can change the HTML/CSS of any page to our local machines. Upon refreshing, however, we know these changes are not saved.

有人如何以自动方式将这些更改仅保存到本地计算机,以便在刷新网站后重新显示更改?

How does someone save these changes for just our local machine, in an automatic fashion that would have our changes reappear after refreshing the site?

例如,假设我去一个博客发布网站,这是由每天更新。假设我想将每篇博客的标题,我读过一个明亮的烦人的红色,(所以快速查看将来可以让我跳过这些)的背景。在这种情况下,假设标题总是h2元素。我将在此标题中添加一个内联元素,所以:
< h2>世界今年结束!< / h2>

< h2 style =color:red;>世界今年结束!< / h2>

For example, say I go to a blog posting website, which is updated by someone every day. Say I wanted to color the background of every blog's title I've read a bright annoying red, (so quick viewing in the future would allow me to skip over these). In this case, imagine the title is always an h2 element. I would add an inline element to this heading, so: <h2>The world ends this year!</h2> becomes <h2 style="color:red;">The world ends this year!</h2>

有没有办法在我们的本地机器上标记,突出显示或更改此博文标题,以便将来自动查看?

Is there any way to Mark, Highlight, or change this blog post title on just our local machine for automatic viewing in the future?

推荐答案

您不需要任何插件或程序就可以创建 Firefox个人资料 目录,然后将您的您想要的网页的自订CSS,例如:

You don't need any plugin or program to do that, just create the userContent.css file in your Firefox profile directory, and paste your custom CSS for the webpage you want, like:

@-moz-document url-prefix(http://www.domain.com/blog/) {
 #content h2 {
  color:red !important;
 }
 #content h2 a {
  color:red !important;
 }
}

您可以在 mozilla开发者网站 a>

这篇关于在无法访问FTP的实际网站上本地保存自定义HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆