Difference between revisions of "Team:BIT-China/css/template/reset"

 
Line 1: Line 1:
/* http://meyerweb.com/eric/tools/css/reset/
+
/*-----------------------------------------------------------
  v2.0 | 20110126
+
*
  License: none (public domain)
+
用于删除mediawiki内所不必要的样式以及统一整个网站的css基准
*/
+
*
 +
------------------------------------------------------------- */
  
 +
 +
 +
/* --------------------------------
 +
删除网站顶部导航栏等不必要样式
 +
delete unnecessary css on page
 +
-------------------------------- */
 +
 +
/*清除顶部logo等显示*/
 +
#top_title{
 +
    display: none;
 +
}
 +
 +
/*删除边栏菜单*/
 +
#sideMenu{
 +
    display: none;
 +
}
 +
 +
/* mediawiki中所有代码被放置于div#content 的内容中,重置此样式并展开到全屏*/
 +
#content{
 +
    padding:0;
 +
    margin:0;
 +
    line-height:1;
 +
    width:100%;
 +
    display:block;
 +
    position:relative;
 +
}
 +
 +
/*修改顶部菜单的高度*/
 +
#top_menu_14{
 +
    height:1em;
 +
}
 +
/*修改顶部菜单的高度*/
 +
#top_menu_inside ul{
 +
    line-height:1.5em;
 +
}
 +
 +
/* 修改所有P标签的样式(似乎这样也并不能修改掉)*/
 +
#HQ_page p{
 +
    font-family: inherit;
 +
    font-size:inherit;
 +
    text-align: inherit;
 +
}
 +
/* 有些css无法在引用css中被修改,必须在该页面内修改 */
 +
/* some css can not be rewrited(like <p> and <ul>),please rewrite them in the page.*/
 +
/* --------------------------------------------------------------------------------------------- */
 +
 +
 +
/* ----------------------------------------
 +
重置所有样式为统一标准
 +
reset all styles to a common standard
 +
 +
------------------------------ */
 
html, body, div, span, applet, object, iframe,
 
html, body, div, span, applet, object, iframe,
 
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
 
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
Line 24: Line 77:
 
vertical-align: baseline;
 
vertical-align: baseline;
 
}
 
}
/* HTML5 display-role reset for older browsers */
+
 
 +
/*--------------------------------------------
 +
部分HTML5标签设定 (为不支持html5的浏览器)
 +
HTML5 display-role reset for older browsers  
 +
--------------------------------------------*/
 
article, aside, details, figcaption, figure,  
 
article, aside, details, figcaption, figure,  
 
footer, header, hgroup, menu, nav, section, main {
 
footer, header, hgroup, menu, nav, section, main {
Line 47: Line 104:
 
border-spacing: 0;
 
border-spacing: 0;
 
}
 
}
 +
/* 所有设定结束 */
 +
/* ------------------------------------------------------------------------------------------------------ */

Latest revision as of 03:01, 15 November 2016

/*-----------------------------------------------------------

*
用于删除mediawiki内所不必要的样式以及统一整个网站的css基准
*

*/


/* -------------------------------- 删除网站顶部导航栏等不必要样式 delete unnecessary css on page


*/

/*清除顶部logo等显示*/

  1. top_title{
   display: none;

}

/*删除边栏菜单*/

  1. sideMenu{
   display: none;

}

/* mediawiki中所有代码被放置于div#content 的内容中,重置此样式并展开到全屏*/

  1. content{
   padding:0;
   margin:0;
   line-height:1;
   width:100%;
   display:block;
   position:relative;

}

/*修改顶部菜单的高度*/

  1. top_menu_14{
   height:1em;

} /*修改顶部菜单的高度*/

  1. top_menu_inside ul{
   line-height:1.5em;

}

/* 修改所有P标签的样式(似乎这样也并不能修改掉)*/

  1. HQ_page p{
   font-family: inherit;
   font-size:inherit;
   text-align: inherit;

} /* 有些css无法在引用css中被修改,必须在该页面内修改 */

/* some css can not be rewrited(like

and

    ),please rewrite them in the page.*/ /* --------------------------------------------------------------------------------------------- */ /* ---------------------------------------- 重置所有样式为统一标准 reset all styles to a common standard
    */

    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }

    /*-------------------------------------------- 部分HTML5标签设定 (为不支持html5的浏览器) HTML5 display-role reset for older browsers


    */

    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ; content: none; } table { border-collapse: collapse; border-spacing: 0; } /* 所有设定结束 */

    /* ------------------------------------------------------------------------------------------------------ */