Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
4/14/2010
Internet Explorer Mobile has supported user style sheets ever
since the release of Windows Mobile 2003. User style sheets provide
a powerful method for customizing the web browsing experience, and
are one of the core features of Cascading Style Sheets (CSS). For
more information on user style sheets and the cascade part of
Cascading Style Sheets, see this
Example use of User Style Sheets
The following example hides all images in all web pages, by creating a style sheet that sets the display property of all images to "none".
- Using Notepad, create a text file that contains this line:
Copy Code | |
---|---|
img { display:none !important } |
- Because this line contains an
img
object display property that hasdisplay
set tonone
, Internet Explorer Mobile does not load images. The!important
element forces this style sheet rule to trump any other author rules. - Save the text file with the name
noimages.css. You must save the file as Unicode, or else the
style sheet will not function.
- Set the SYSTEM attribute on the style sheet file on your
desktop. This is necessary for security reasons.
- Copy
noimages.cssto the \windows directory on the device.
- Using a Registry Editor, locate the key
Copy Code | |
---|---|
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Stylesheet |
- Within that key, create the following registry entries:
Copy Code | |
---|---|
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Stylesheet\NoImages Enabled = 1 File = "\windows\noimages.css" |
- Restart Internet Explorer Mobile, and it no longer displays
images on any web pages.