html上下两输入框间距,HTML间距问题

这是一个非常好的“主样式表”,用于清除/分级浏览器字段。在应用任何类型的样式之前,都应该将所有内容归零。

/* Global Defaults */

html, body {

margin: 0px;

padding: 0px;

border: 0px;

}

body {

font: 1em/1.25 Arial, Helvetica, sans-serif;

}

/* Headlines */

h1, h2, h3, h4, h5, h6 {

margin: 0;

padding: 0;

font-weight: normal;

font-family: Arial, Helvetica, sans-serif;

}

/* Text Styles */

p, th, td, li, dd, dt, ul, ol, blockquote, q, acronym, abbr, a, input, select, textarea {

margin: 0;

padding: 0;

font: normal normal normal 1em/1.25 Arial, Helvetica, sans-serif;

}

blockquote {

margin: 1.25em;

padding: 1.25em

}

q {

font-style: italic;

}

acronym, abbr {

cursor: help;

border-bottom: 1px dashed;

}

small {

font-size:.85em;

}

big {

font-size:1.2em;

}

/* Links and Images */

a, a:link, a:visited, a:active, a:hover {

text-decoration: underline;

}

img {

border: none;

}

/* Tables */

table {

margin: 0;

padding: 0;

border: none;

}

/* Forms */

form {

margin: 0;

padding: 0;

display: inline;

}

label {

cursor: pointer;

}

/* Common Classes */

.clear { clear: both; }

.floatLeft { float: left; }

.floatRight { float: right; }

.textLeft { text-align: left; }

.textRight { text-align: right; }

.textCenter { text-align: center; }

.textJustify { text-align: justify; }

.blockCenter { display: block; margin-left: auto; margin-right: auto; } /* remember to set width */

.bold { font-weight: bold; }

.italic { font-style: italic; }

.underline { text-decoration: underline; }

.noindent { margin-left: 0; padding-left: 0; }

.nomargin { margin: 0; }

.nopadding { padding: 0; }

.nobullet { list-style: none; list-style-image: none; }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值