body{margin:0;padding:0;}
div{width:100px;height:100px;background:red;position: absolute;left:0;}
span{width:0;height:600px;position:fixed;left:600px;top:0;border-left:1px solid red;...
分类:
Web程序 时间:
2014-10-21 17:45:09
阅读次数:
150
方法1:#div1{ width:200px; height:200px; background:green; position:absolute; left:0; top:0; right:0; bottom:0; margin:auto;}方法2:#div1{ width:4...
分类:
其他好文 时间:
2014-10-20 23:17:59
阅读次数:
222
$(window).resize(function(){ $(".mydiv").css({ position: "absolute", left: ($(window).width() - $(".mydiv").outerWidth())/2, ...
分类:
Web程序 时间:
2014-10-20 17:08:28
阅读次数:
197
处理方式但是会让页面上的relative 和 position 定位都变成 fixed 定位用expression 可以让ie实现页面固定,但是是设置absolute实现,会出现抖动,通过 设置background-image 解决* html,* html body{background-imag...
分类:
其他好文 时间:
2014-10-20 16:34:07
阅读次数:
152
统计学习中常用的损失函数有以下几种:(1) 0-1损失函数(0-1 loss function):L(Y,f(X))={1,0,Y≠f(X)Y=f(X)(2) 平方损失函数(quadratic loss function)L(Y,f(X))=(Y?f(X))2(3) 绝对损失函数(absolute ...
分类:
其他好文 时间:
2014-10-20 11:38:04
阅读次数:
170
函数名: fabs
功 能: 返回浮点数的绝对值
用 法: double fabs(double x);
程序例:
#include
#include
int main(void)
{
float number = -1234.0;
printf("number: %f absolute value: %f\n",
number, fabs(n...
分类:
编程语言 时间:
2014-10-18 14:04:43
阅读次数:
278
每天一个JavaScript实例-铺货鼠标点击位置并将元素移动到该位置
#info{
width:100px;
height:100px;
background:red;
position:absolute;
top:0;
left:0;
}
window.onload = function(){
document.onclick = clickwhere;
...
分类:
移动开发 时间:
2014-10-16 20:35:43
阅读次数:
170
(3属性 IE6不支持)position : static:默认 absolute:绝对定位 relative:相对定位 fixed:窗口定位(出现滚动条不随滚动条移动)z-index:定义层叠级别top:定位元素上距right:定位元素右距buttom:定位元素下距left:定位元素左距(...
分类:
Web程序 时间:
2014-10-14 11:55:28
阅读次数:
216
IE:外层filter,内层position:relative或absolute。FF:外层不使用opacity,而用background:rgba()。[html]view plaincopyNewDocument图层背景半透明,字体颜色也半透明图层背景半透明,字体颜色不半透明
分类:
Web程序 时间:
2014-10-13 18:24:11
阅读次数:
254
刚才写zenktodo的时候,通过动态添加class的方式修改一个div的样式,总是不起作用。Css代码#navigator{height:100%;width:200;position:absolute;left:0;border:solid2#EEE;}.current_block{border...
分类:
Web程序 时间:
2014-10-12 02:37:27
阅读次数:
489