大家可以通过table来设置居中:
display: table;
width: auto;
margin-left: auto;
margin-right: auto;...
分类:
其他好文 时间:
2014-09-01 17:51:35
阅读次数:
304
一、当文字与图片在一行,需要将文字与图片底对齐,需要这样写:
1
li>记住密码img src="" align="bottom" style="margin-bottom:-4px"/>li>
二、当文字与图片在一行,需要将文字与图片居中对齐,需要这样写:
1
li>...
分类:
Web程序 时间:
2014-09-01 17:49:43
阅读次数:
314
一、让层显示在flash之上
解决办法:给FLASH设置透明或者
二、使一个层垂直居中浏览器中
解决办法:使用百分比绝对定位,与外补丁负值的方法。
.代码
{position:absolute;
top:50%;
left:50%;
margin:-100px auto auto -100px;
...
分类:
Web程序 时间:
2014-09-01 17:46:05
阅读次数:
293
************◆Margin属性:适合对象:所有元素是否继承:no百分比备注:相对于BOX的宽度2D Transform 方法实例div{transform: rotate(30deg);-ms-transform: rotate(30deg); /* IE 9 */-webkit-tr....
分类:
Web程序 时间:
2014-09-01 00:26:02
阅读次数:
249
margin 外边距padding 内边距四个参数时依次表示 上 右 下 左 距离例子 1padding:10px 5px 15px 20px;上内边距是 10px右内边距是 5px下内边距是 15px左内边距是 20px例子 2padding:10px 5px 15px;上内边距是 10px右内边...
分类:
Web程序 时间:
2014-08-31 18:29:11
阅读次数:
412
盒模型在CSS中,一个独立的盒子模型content(内容)、border(边框)、padding(内边距)和margin(外边距)4个部分组成。一个盒子实际所占用的宽度或高度是由“内容+内边距+边框+外边距”组成的。设置边框样式border-styleborder-widthborder-color...
分类:
Web程序 时间:
2014-08-31 01:37:50
阅读次数:
287
/*Typing Loader*/div.typing { width: 400px; height: 300px; margin: 20px auto 500px; border: 2px #0f0 solid; background: #000; }.typing_loader{ width: ...
分类:
Web程序 时间:
2014-08-31 00:18:30
阅读次数:
819
/* 线性渐变 */div.radial {width: 600px;height: 100px;margin: 30px auto;border: 1px #f00 solid;background: -webkit-gradient(linear, 0 0, 0 100%, from(yello...
分类:
Web程序 时间:
2014-08-30 17:36:40
阅读次数:
356
简单瀑布流代码实现
html代码如下
瀑布流-zhangzhang
*{padding: 0;margin:0;}
#main{
position: relative;
}
.pin{
padding: 15px 0 0 15px;
float:left;
}
.box{...
分类:
编程语言 时间:
2014-08-29 22:46:28
阅读次数:
378