简体   繁体   English

我是否可以制作一个本地样式表,从而从访问的页面上删除所有CSS?

[英]Can I make a local style sheet that essentially removes all CSS from pages I visit?

I want to semi-permanently (temporarily but it lasts past a refresh or following a link) browse without CSS in IE6. 我想在IE6中半永久地(临时,但持续刷新或链接之后)浏览。 There doesn't appear to be a way to permanently disable CSS without messing with the registry. 似乎没有一种方法可以永久禁用CSS而不会弄乱注册表。 Can I make a local style sheet that sets all styles to none, for example, and effectively "turns off" css while i browse? 我能否制作一个本地样式表,例如将所有样式均设置为无,并在浏览时有效地“关闭” css? What would I need to include? 我需要包括什么? Thanks. 谢谢。

You have the following options ( that i am aware of ) 您有以下选择( 我知道

  1. http://www.kintek.com.au/web-design-blog/bookmarklet-to-inject-yahoo-reset-css-into-any-page/ http://www.kintek.com.au/web-design-blog/bookmarklet-to-inject-yahoo-reset-css-into-any-page/
  2. Install IE developer toolbar 安装IE开发人员工具栏
  3. Use firefox which support this natively (and without css it renders the same in all browsers..) 使用本机支持此功能的firefox(如果没有CSS,它将在所有浏览器中呈现相同的效果。)

3 is the only one that will persist after reloads.. 3是唯一在重新加载后仍将保持的状态。

http://www.webmasterworld.com/forum83/80.htm http://www.webmasterworld.com/forum83/80.htm

Looks like at least 3 options (thought it would be easier!): 看起来至少有3个选项(这样做会更容易!):

  • registry hack 注册表黑客
  • Accessibility options dialog, though it doesn't completely remove it 辅助功能选项对话框,尽管没有完全将其删除
  • View->Source, edit html and redisplay locally. 查看->源,编辑html并在本地重新显示。

Quoting from the page, since it seems to be the most robust solution: 引用页面,因为它似乎是最可靠的解决方案:

...the ability to disable style sheets was removed from internet properties...To work around this issue, use Registry Editor to open the following registry key... ...禁用样式表的功能已从Internet属性中删除...要变通解决此问题,请使用注册表编辑器打开以下注册表项...

HKEY_CURRENT_USER\\Software\\Microsoft\\internet Explorer\\Main HKEY_CURRENT_USER \\ Software \\ Microsoft \\ internet Explorer \\ Main

To disable the use of style sheets, add a string value to the above registry key called > "Use StyleSheets" and set it to no. 要禁用样式表,请将字符串值添加到上面的注册表项>>“ Use StyleSheets”,并将其设置为no。

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

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