js
返回顶部
body{margin:0; padding:0}
#to_top{width:30px; height:40px; padding:20px; font:14px/20px arial; text-align:center; background:#06c; position:absolute; cursor:pointer; color:#fff}
window...
分类:
Web程序 时间:
2015-07-18 15:36:05
阅读次数:
168
官方地址:http://validform.rjboy.cn/document.html引用js后再加上以下css就可以使用了.Validform_checktip{ margin-left:8px; line-height:20px; height:20px; overflow:hidde...
分类:
Web程序 时间:
2015-07-17 20:33:37
阅读次数:
558
static元素 margin-top/left负值,元素向指定方向移动, margin-bottom/right负值,元素不动,后续元素前移 float元素 左浮,与static一致 右浮,margin-right/top负值,元素向指定方向移动, m...
分类:
其他好文 时间:
2015-07-17 20:27:04
阅读次数:
103
1、绝对定位 html,body{margin:0; height:100%;}#left,#right{position:absolute; top:0; width:200px; height:100%;}#left{left:0; background:#a0b3d6...
分类:
其他好文 时间:
2015-07-17 15:41:42
阅读次数:
134
@(Model.content)(或者) @Html.TextAreaFor(it => it.content, 19, 100, new {style="margin:8px 0 0 0;width:719px;" }) ...
分类:
Web程序 时间:
2015-07-17 11:30:46
阅读次数:
136
一、margin 内边距1、margin常用于网页内部块与块之间的距离。2、margin附有多个属性,分别是 margin-left【左】 margin-top【上】 margin-bottom【下】 margin-right【右】3、属性调用数值 ,像素,来执行目标。二、padding 外边距1、...
分类:
其他好文 时间:
2015-07-17 07:06:57
阅读次数:
107
一、内容高度不固定,容器高度固定,要使内容在容器中垂直居中a.使用空标签 比较满意比较满意比较满意cssHack* { margin: 0; padding: 0;}.cont { background-color: #ccc; font-size: 24px; ...
分类:
其他好文 时间:
2015-07-16 23:55:46
阅读次数:
153
刚刚度过了实习期,进入了试用期。试用期依然会安排学习的任务。在学习中发现css的居中十分常用,做一个小小的探索。一、水平居中1.行内元素可以直接使用text-align:center来解决。例如图片和文字等。2.块级元素2.1宽度确定的块级元素,使用margin-left:auto;和margin-...
分类:
Web程序 时间:
2015-07-16 21:23:55
阅读次数:
136
1.简单粗暴:*{margin:0;padding:0}不建议2.淘宝方式:body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, in...
分类:
Web程序 时间:
2015-07-16 18:38:32
阅读次数:
145
ul { list-style: none;}a { text-decoration: none;}body,h1,h2,h3,h4,h5,h6,p,ul,ol,form { margin: 0; padding: 0;}html,body { width: 100%; height: 100%; ...
分类:
Web程序 时间:
2015-07-16 18:23:54
阅读次数:
154