我在互联网上遇到了一个无法停止用大写字母写所有东西的人。她有眼睛问题,只是不想一直放大和缩小来阅读小写字母。
我想编写一个 CSS 样式表,将页面中的所有文本转换为大写。通过一些谷歌搜索,我可以独自完成这项工作,但如果有人可以在这里帮助我,那将会很有用。
最重要的是,我想将此 CSS 表应用到浏览器:这可能吗?
One of the simplest ways is probably to use Stylish in Firefox. It lets you add a style sheet to be applied on all pages, in a manner that is easy to switch off then needed. And you could simply write
* { text-transform: uppercase !important; }
Without the !important
specifier, the style sheet would be ineffective as regards to elements that have text-transform
set in page style sheet.
Note that this only changes the display of characters. When typing text in a textbox, without using the shift key, it would be displayed in upper case but, upon form submission, as well as in any scripted processing in the browser, it would still be in lower case.