如何将HTML页面带入编辑模式 [英] How to take a html page into edit mode

查看:109
本文介绍了如何将HTML页面带入编辑模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
我的问题是我想将一个基本的html页面一个一个地带入编辑模式.在adim中编辑所有html页面.

意味着所有包含,图像将进入编辑模式,在此模式下,人们只需单击即可编辑自己想要的内容并更新新的包含.

sir,
my question is that i want to take one by one basic html page into edit mode.Where adim edit all html page.

mean all contain,image will come in edit mode where person edit what he want and update the new contain with single click.

may i know how to do?

推荐答案

没有这样的模式".您将如何使用它?

如果要在任意网页上放置编辑模式",则与ASP.NET无关.这种功能在某些浏览器中可用,而与Web开发本身无关.您只能修改内容并将其保存在本地.在大多数浏览器中,您也可以使用查看页面源代码".我认为您对此微不足道的行为不感兴趣.

当然,您可以生成一个<textarea>元素并将任意内容放入其值.特别是,您可以在其中加载任何其他网页的内容,但是为什么呢?您是否希望用户将编辑后的内容发布到服务器,并使生成的HTML代码按原样可供客户端访问?原则上,您可以,但是我警告您:如果站点到无法想象的程度,它将破坏安全性! :-)

—SA
There is no such "mode". How would you use it?

If you want to put an "edit mode" any arbitrary Web page, it has nothing to do with ASP.NET. Such feature is available in some browsers and have nothing to do with Web development per se; you can only modify the content and save it locally. In most browsers you can also use "View page source". I don''t think you are interested in this trivial behavior.

Of course, you can generate a <textarea> element and put any arbitrary content in its value. In particular, you can load a content of any other Web page in it, but why? Would you want the user to post the edited content to the server and make the resulting HTML code accessible to the clients as it is? In principle, you could, but I warn you: it would break security if the site to an unthinkable extent! :-)

—SA


如果您使用的是IE8及更高版本,则只需按F12键即可.
将会打开一个新窗口.实际上,这将以开发人员模式加载您的页面.

您可以通过转到视图菜单然后查看源代码来查看源代码.
您可以将网页的内容复制到编辑器中,并根据需要进行修改.
If you are using IE8 and above to view your page, just press F12.
A new window will open up. This actually loads your page in developer mode.

You can take a look at the source code by going to the view menu and then viewing the source.
You can copy the contents of the web page into an editor and modify as required.


这篇关于如何将HTML页面带入编辑模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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