Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

  • 4 trả lời
  • 3 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi 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>

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi cor-el vào