Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

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

  • 4 απαντήσεις
  • 3 έχουν αυτό το πρόβλημα
  • 2 προβολές
  • Τελευταία απάντηση από 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>

Τροποποιήθηκε στις από το χρήστη cor-el

Όλες οι απαντήσεις (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.

Τροποποιήθηκε στις από το χρήστη cor-el