javascript - Angular requirejs tag before HTML tag has 100% height without adding 100% height to css -
Html tag is strange before I have decided to move my tags to the head tag I
If I head to the script tag Tag, my page will not fully 100% height, I have to add 100% height in all the elements to keep the whole page 100% high. If I keep this script then it works fine and increases the whole page to 100% height.
& lt; Script type = "text / javascript" data-main = "/ assets / js / main" src = "/ lib / require.js" & gt; & Lt; / Script & gt; & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div ng-cloak & gt; & Lt; Div ng-view & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
The reason for this is that your html is invalid (script does not precede tag functionality , Html tags). Like having a script tag before the Dictippae announcement, your browser will not accept your encrypted declaration, and instead will return to your default change according to the HTML parser, and in most cases the browser will be redirected to "Quirks" / Backwards causes to operate in compatibility mode. In these modes browsers do not completely follow glasses (for example, W3C Speak).
Then you can get 100% height element. There are other things like how the document is provided, how to calculate some properties (client high, client wide, etc.)
The name of the name WHATWG and a pair According to the notes
Comments
Post a Comment