Reset CSS

在CSS 前掛上這一段「Reset CSS」的語法,就可以輕鬆解決各大瀏覽器的差異

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

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 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	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;
}

來源: http://meyerweb.com/eric/tools/css/reset/

本篇發表於 CSS。將永久鏈結加入書籤。

Reset CSS 有 4 則回應

  1. Thanks for the marvelous posting! I certainly enjoyed reading it,
    you happen to be a great author.I will make certain to bookmark your blog and
    definitely will come back from now on. I want to encourage continue
    your great writing, have a nice morning!

  2. I was recommended this blog by my cousin. I’m not sure whether
    this post is written by him as no one else know such detailed about my difficulty.
    You are amazing! Thanks!

  3. Hmm it looks like your site ate my first comment (it was
    extremely long) so I guess I’ll just sum it up what
    I had written and say, I’m thoroughly enjoying
    your blog. I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any tips and hints for novice blog writers? I’d certainly appreciate it.

  4. pc sur tablette 說道:

    Greetings! I’ve been following your weblog for some time now and
    finally got the courage to go ahead and give you a shout
    out from Kingwood Tx! Just wanted to tell you keep up the
    great job!

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>