Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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