转自:http://www.bit-101.com/blog/?p=523
Sometimes you need to have a full browser screen filled with a swf. Everyone knows how to do that. You go into Publish Settings, set Dimensions to “Percent” and Width and Height to 100.
The problem is that you still end up with a margin around the edge of the page. So you dive into the HTML and add in something to change the margin and padding to 0 for the body.
That works fine on many browswers, but on Firefox, maybe Mozilla too, it is totally broken. The Flash only fills about 100 pixels or so at the top of the page. After searching around, I found that Mozilla is very strict about its percentages. You are telling the swf to take up 100%, but 100% of what? The swf is in the body tag. The body tag is in the html tag, which is in the browser window. Most browsers will scale the html size to fill the browser window and scale the body to fill the html size.
Not so with Mozilla/Firefox. It doesn’t assume that html fills 100% of the browswer, or that body fills 100% of the html. So you have to tell it that.
The following little snippet in a styles tag in the html head handles all of this:
body,html {
margin:0px;
padding:0px;
height:100%;
}
I actually put this right into the default.html file in the templates Flash uses to create its html. Of course you have to take it out if you don’t need it, but I found it easier to delete than have to remember when I need it. That’s just me. If I were really organized, I’d create a whole new template for this purpose.
分享到:
相关推荐
What are Extreme Learning Machines Filling the Gap Between Frank Rosenblatts Dream and John von Neumanns Puzzle
% WATERFILLING, by itself, creates a new WATERFILLING or raises the existing % singleton*. % % H = WATERFILLING returns the handle to a new WATERFILLING or the handle to % the existing singleton*. %
power control algorithm using Iterative Partitioned Water Filling (IPW) are performed for CRnetwork with multiple PUs and SUs under opportunistic spectrum access mode. The simulation is conducted for ...
"User-Guided Line Art Flat Filling With Split Filling Mechanism" 本文介绍了一种基于深度学习的用户指导下的线艺术平面填充框架,该框架能够计算用户颜色涂鸦的“影响区域”,即用户涂鸦应该传播和影响的区域。...
- **Creating the Game Board Module**: Explained as initializing the game state and filling the initial board with game pieces. - **Implementing the Rules**: Detailed as validating swaps, detecting ...
(a) filling in skeleton tables of the database with examples of what is to be retrieved (b) placing SQL keywords, such as select, under the column names they want to retrieve (c) typing a ...
Filling the Holes The END_MESSAGE_MAP() Macro Unfolding the Map There's No Sense of Obligation CObject Memory Management Debugging Support Serialization Run-time Type Information Your Own ...
### Web Form设计——填补空白(2008年版) #### 书籍概述 《Web Form设计——填补空白》是一本由Luke Wroblewski编写的关于网页表单设计的经典著作,出版于2008年。该书深入探讨了网页表单的设计原则与实践方法,...
- **Creating the Game Board Module**: Implementing the logic for initializing and managing the game board, including filling it with initial game pieces. - **Implementing the Rules**: Coding the rules...
How to debug different viewports at the browser 49 Cleaning up the mess 52 Creating the landing page for different devices 53 Mobile and extra small devices 54 Tablets and small devices 59 Desktop and...
"Waterfilling"算法,又称为“水位填充”或“水量分配”算法,是通信领域中一种优化资源分配的经典策略,主要用于解决多信道或多频率带宽的利用问题。这个算法的核心思想是将可用的功率资源均匀地分配到各个信道上,...
水稻花后土壤干旱对籽粒中脱落酸、乙烯和抗氧化系统的影响及其与籽粒灌浆的关系,张耗,刘凯,本研究以2个水稻品种为材料,种植于盆钵,自花后9天至成熟设置3个土壤水分处理,分别是保持水层灌溉(WW)、土壤轻度落...
- FIX: After deleting the selected points in the TFlexPanel.DeleteSelectedPoints the all figures with one point also deleted. - FIX: When the curve contain more then one figure and they were all ...
water filling without relay.We use simulation results to show the performance of the water filling algorithm. Simplify this question into a OFDM based communication network with one transmitter and ...
In layered soil filling, the diffusion of natural gas mainly depends on the properties of the filling land, such as porosity, saturation, and pressure. At the interface between different materials, ...
在5.rar_in_water filling这个资料包中,我们可以找到对水填充算法的深入探讨,以及可能的实际应用案例。 水填充算法的基本思想是将可用资源视为一个容器,各个需求视为容器中的缝隙或槽位。如同往一个有缝隙的容器...
2. **Revision**: Engaging students in filling in the blanks with suitable relative pronouns from their prior knowledge, followed by justifying their choices. This step assesses their understanding of ...
The experiment content, Familiar with the computer, familiar with the keyboard, the translation of input in English. The essay learns to enter with the correct fingering, knowing the input of all ...
plus Java developers with a basic all-in-one programming reference * Covers the recent release of the Java 2 Platform Standard Edition 5.0 and the new J2SE Development Kit 5.0 * Starts with ...