Why do different browsers render the same HTML differently?

前端 未结 5 1101
情话喂你
情话喂你 2020-12-07 16:24

This is an html page :




Frame Set



        
5条回答
  •  眼角桃花
    2020-12-07 16:47

    You miss the tag , in the first line of page.

    Ex:

    
    

    If you don't put it, IE will activate quirks mode, and very strange things will happen. When a browser activate quirks mode, many things change, as box model.

    NOTE: many browsers has quirks mode, not only IE (I know that firefox has too).


    More about quirks mode.

    List of doctypes.

提交回复
热议问题