Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Why I have to select View/Page Style/No Style multiple times to remove styles

  • 4 antwurd
  • 3 hawwe dit probleem
  • 2 werjeftes
  • Lêste antwurd fan gregjenkins

more options

If I have a simple html file with a single frame like the following, I have to select View/Page Style/No Style twice to remove the page style in child.html. Is this a bug in Firefox?

Also after setting child.html to "No Style", it doesn't carry the "No Style" setting to the new window created with "window.open()".

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>	
<FRAMESET frameborder="yes">
    <frame src="/child.html" name="child" noresize="noresize" scrolling=no marginheight="0" marginwidth="0" frameborder="0" border="0" title="child html for testing">
</FRAMESET>
</HTML>
If I have a simple html file with a single frame like the following, I have to select View/Page Style/No Style twice to remove the page style in child.html. Is this a bug in Firefox? Also after setting child.html to "No Style", it doesn't carry the "No Style" setting to the new window created with "window.open()". <pre><nowiki> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <HTML> <HEAD> <TITLE>test</TITLE> </HEAD> <FRAMESET frameborder="yes"> <frame src="/child.html" name="child" noresize="noresize" scrolling=no marginheight="0" marginwidth="0" frameborder="0" border="0" title="child html for testing"> </FRAMESET> </HTML></nowiki></pre>

Bewurke troch cor-el op

Alle antwurden (4)

more options

View > Page Style > No Style only applies to the current page in View and doesn't carry over to other windows or links that you open.


more options

Thank you for your quick reply.
Do you happen to know something about my first question - why I need to select the menu option twice to remove styles on child.html when having "scrolling=no" in the frame tag?
In the application I am working on, we have multiple nested frames and we have to select "No Style" 3 - 4 times to remove all styles, which is very user unfriendly.
In addition, it removes all positioning settings, which forces us to either come up with our own alternative style or expand each frame window. It would be nice if Firefox could have an option to turn off styles specifically for vision impaired people.

more options

Can you post a link to a page that has that code?

more options

I don't have a web site for other people to access, but here is my child.html. If you don't mind to do some copy and paste, you may save the code given in my question in a html file, e.g. parent.html, and save the following code in child.html.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<html>
    <head>
    </head>
    <body TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>
	<div style="text-algn: center;">
	    <table cellspacing=0 cellpadding=0 style="margin: 0px;" >
		<tbody>
		    <tr>
			<td>
			<table cellspacing=0 cellpadding=0 >
			    <tbody>
				<tr>
				    <td>
					<A href="javascript: alert('test');"><span>It shows space above this link when "No Style" is selected.<BR>With "scrolling=no" specified in the frame tag, select "No Style" twice to remove styles. </span></A>
				    </td>
				</tr>
			    </tbody>
			</table>
			</td>
		    </tr>
		</tbody>
	    </table>
	</div>
    </body>
</html>

Note: please make sure you don't have any style add-on installed.

Bewurke troch cor-el op