html css 初始化(全)

来源:互联网 发布:吉首大学网络课 编辑:程序博客网 时间:2024/06/11 13:08

(日本的)


@charset 'UTF-8';


/* RESET */
html, body,
div,
ul, ol, li,
dl, dt, dd, td, th,
h1, h2, h3, h4, h5, h6,
p, pre, blockquote, fieldset,
form, input, button, textarea {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
pre, code, address, caption, cite, code,
em, strong, th {
    font-size: 1.0em;
    font-weight: normal;
    font-style: normal;
}

ul, ol, li {
    list-style: none;
}

fieldset, img {
    border: none;
}

img {
    -ms-interpolation-mode: bicubic;
}

caption, th {
    text-align: left;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input,textarea,select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

input,textarea,select {
    *font-size: 100%;
}

button {
    background-color: transparent;
    text-decoration: none;
}

label {
    cursor: pointer;
}

/* IEPNGFIX */
img { behavior: url(lib/iepngfix.htc); }


/* ELEMENT */
body {
    clear: both;
    background-color: #ffffff;
    text-align: center;
    color: #333;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    line-height: 1.6em;
    font-family :
    Meiryo,
    'メイリオ',
    'Lucida Grande',
    Verdana,
    'Hiragino Kaku Gothic Pro',
    'ヒラギノ角ゴ Pro W3',
    'MS Pゴシック',
    "MS P Gothic",
    sans-serif;
}

body div {
    text-align: left;
}

a {
    color:  #006DBE;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

a:link, a:visited, a:active {
    text-decoration: none;
}

a:active,
a:focus {
    outline:none;
}

a:hover {
    color:  #15A7E7;
    text-decoration: underline;
    cursor: pointer;
}

strong, b {
    font-weight: bold;
}

em, i {
    font-style: italic;
}


/* Default Class */
.left {
    float: left;
}

.right {
    float: right;
}

.center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: right;
}

.image-left {
    float: left;
    padding: 0 10px 10px 0;
}

.image-right {
    float: right;
    padding: 0 10px 0 10px;
}

.clear {
    clear: both;
}

.display-none {
    display: none;
}

.hidden {
    visibility: hidden;
}

.red {
    color: #c7003b;
}

.strong,
.bold {
    font-weight: bold;
}

.vAlign-middle {
    display: table-cell;
    vertical-align: middle;
}

* html .vAlign-middle {
    display: inline;
    zoom: 1;
}

*+html .vAlign-middle {
    display: inline;
    zoom: 1;
}

/* <a href="#" class="tooltip">Tooltip<span>This is the crazy little Easy Tooltip Text.</span></a> */
a.tooltip span {
    display: none;
    padding: 5px;
    margin-left: 8px;
    width: 130px;
}

a.tooltip:hover span {
    display: inline;
    position: absolute;
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #6c6c6c;
}

.image-resize {
    max-width: 200px;
    max-height: 200px;
}

* html body .image-resize {
    width: expression(this.width >= this.height ? "200px" : "auto");
    height: expression(this.width <= this.height ? "200px" : "auto");
}

*+html body .image-resize {
    width: expression(this.width >= this.height ? "200px" : "auto");
    height: expression(this.width <= this.height ? "200px" : "auto");
}

/* <a href="#" class="image-zoom"><img src="sample.jpg" /></a> */
a.image-zoom img {
    max-width: 100px;
    max-height: 100px;
}

* html body a.image-zoom img {
    width: expression(this.width >= this.height ? "100px" : "auto");
    height: expression(this.width <= this.height ? "100px" : "auto");
}

*+html body a.image-zoom img {
    width: expression(this.width >= this.height ? "100px" : "auto");
    height: expression(this.width <= this.height ? "100px" : "auto");
}

a.image-zoom:hover img {
    max-width: 200px;
    max-height: 200px;
}

* html body a.image-zoom:hover img {
    width: expression(this.width >= this.height ? "200px" : "auto");
    height: expression(this.width <= this.height ? "200px" : "auto");
}

*+html body a.image-zoom:hover img {
    width: expression(this.width >= this.height ? "200px" : "auto");
    height: expression(this.width <= this.height ? "200px" : "auto");
}


原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 穿书女配养崽忙 反派摄政王有了读心术,我躺赢了 星际大佬在荒野求生综艺爆红 满级女配在恋爱综艺当咸鱼 救命!战神王爷对我动了情 全球角色等级考核 大雍女提刑 相府逃妾登基了 电竞:荣光归你 撩疯!禁欲傅总嗜我成瘾 惊!废材她捶了天道 病娇战神的醋坛子翻了 当npc成为天降娘亲后她佛了 女主修仙,法力无边 惊!疯批狐王哭着求我摸尾巴 穿成农女后拥有了一整片森林 锦鲤系统:小奶包她欧气爆棚 不可退出 傲娇殿下整天粘着我要入赘 路人甲她又又又上位了 鬼医王妃,带着医毒空间回来复仇 凤落人间千般好 我加载了怪谈游戏 大国体育 薄教授是个护妻狂魔 我在京都贫民巷当神医 我带着游戏账号回古代经商 暴君心尖宠她从天上来 在大理寺卿怀里假意娇嗔 软萌女法师 黑客大佬又被伪装奶狗缠上了 豪门大佬每天都在娱乐圈艰难求生 荒野攻略学长手札 端王殿下又在书房偷看我 我欲修仙,狗皇帝滚边 新鲜!乡下来的小娇娇震惊全球 穿越后,病弱王爷日夜娇哄我 穿成恶毒妃子后,靠弹幕洗白了 穿成炮灰后全家在古代逃荒求生 重生九零:替嫁傻妻成了大佬心头肉 夏日陷情