寫頁面時,用到的一些經常使用樣式

設置全局字體的樣式css

font: 12px/1.5 'helvetica neue', tahoma, 'hiragino sans gb', stheiti, 'wenquanyi micro hei', '微軟雅黑', '宋體', sans-serif;html


下面是css reset,複製粘貼使用ios


/*web

 * @version ios 0.0.0canvas

 **/app

html,ide

body,字體

div,spa

span,.net

object,

iframe,

h1,

h2,

h3,

h4,

h5,

h6,

p,

blockquote,

pre,

abbr,

address,

cite,

code,

del,

dfn,

em,

img,

ins,

kbd,

q,

samp,

small,

strong,

sub,

sup,

var,

b,

i,

dl,

dt,

dd,

ol,

ul,

li,

fieldset,

form,

label,

legend,

table,

caption,

tbody,

tfoot,

thead,

tr,

th,

td,

article,

aside,

canvas,

details,

figcaption,

figure,

footer,

header,

hgroup,

menu,

nav,

section,

summary,

time,

mark,

audio,

video {

  margin: 0;

  padding: 0;

  outline: 0;

  font-size: 100%;

  font: inherit;

  vertical-align: baseline;

}

article,

aside,

details,

figcaption,

figure,

footer,

header,

hgroup,

menu,

nav,

section {

  display: block;

}

address,

caption,

cite,

code,

dfn,

em,

strong,

i,

th,

var,

optgroup {

  font-style: normal;

  font-weight: normal;

}

h1,

h2,

h3,

h4,

h5,

h6,

abbr,

acronym {

  font-weight: normal;

}

input,

button,

textarea,

select,

optgroup,

option {

  font-family: inherit;

  font-size: inherit;

  font-style: inherit;

  font-weight: inherit;

}

input,

button,

textarea,

select {

  font-size: 100%;

}

input[type="text"],

input[type="password"],

textarea {

  outline-style: none;

  -webkit-appearance: none;

}

textarea {

  resize: none;

}

ol,

ul {

  list-style: none;

}

table {

  border-collapse: collapse;

  border-spacing: 0;

}

caption,

th {

  text-align: left;

}

a,

ins {

  text-decoration: none;

}

a {

  outline: none;

}

a:visited,

a:active {

  text-decoration: none;

}

a:active {

  text-decoration: underline;

}

blockquote,

q {

  quotes: none;

}

:focus {

  outline: none;

}

img {

  border: none;

}

blockquote:before,

blockquote:after,

q:before,

q:after {

  content: '';

  content: none;

}

相關文章
相關標籤/搜索