<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:15.6pt;} div.Section1 {page:Section1;} -->
最近对 QQ 邮箱的主界面做了一个解析,也就客户端页面的布局做了一番探讨。
分解之后的代码如下:
< body class = "frame_class" onbeforeunload = 'return beforeFrameHtmlUnload();' >
< table style = "border-bottom:none!important;*border-bottom:2px solid #fff;" cellspacing = "0" cellpadding = "0" width = "100%" height = "100%" >
< tr >
< td height = "66" class = "getuserdata" id = "topDataTd" >
< div class = "topdata" >
</ div >
</ td >
</ tr >
< tr >
< td class = "topline_height" id = "sepLineTd" >
< div class = "topline" >
< div class = "toplineimg left" id = "imgLine" ></ div >
</ div >
</ td >
</ tr >
< tr >
< td class = "newskin_left" >
< div id = "leftPanel" class = "leftcontent" >
</ div >
< div id = "mainFrameContainer" class = "maincontent" >
< iframe src = "/cgi-bin/today?sid=YlcYwdUJYzGDQVEb" name = "mainFrame" id = "mainFrame" frameborder = "no" scrolling = "auto" onload = "MarkTime('t8','today onload');" style = "width:100%;height:100%;" hidefocus /></ iframe >
</ div >
</ td >
</ tr >
</ table >
< img id = "imgSpeedStat" style = "display:none;width:0;height:0;" >
</ body >
</ html >
解析:在 body 之中是一个 table ,分为三行,第一行是标题行,第二行是分隔线,第三行是包含两个 div ,左右结构,左边的是导航,右边的是邮件主体结构。
结构图如下:
大纲图如下:
邮件的主体内容采用 iframe 的框架。
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛