首页 > 编程知识 正文

js分割线代码(web分割线代码)

时间:2023-12-20 16:55:06 阅读:318505 作者:OXFD

本文目录一览:

js怎么让弹屏页面内加入可以左右移动的分割线

第一种方式:使用frameset框架页面,有兼容性,不提倡使用;

第二种方式:就是用js来控制了,加入一条分割线节点,给这个节点添加拖动的相关动作,比较麻烦点。

jsp页面中如何显示一条横线....

phr控制

!-- width控制线的长度size控制线的粗细 --

横线:hr width=500 size=0 color="#999999"

!-- width控制线的宽度,size控制线的长短 --

横线brdiv style="position:relative; width:600; height:1px; background-color:red"/div

div style="background:#fff;

text-align: center;

margin:0 auto;

margin-bottom:-18px;

width: 90px;

position:relative;

"XXXXXXXXX/divhr/

扩展资料

在网页中画一条竖线

1div style="width:1000;height:1;;border-top:1px dotted #000000"/div2s

style="width:1000;height:1;border-top:1px dotted #000000"/s3b

style="width:1000;height:1;border-top:1px dotted #000000"/b4input

style="width:1000;height:1;border-top:1px dotted #000000"5a

style="width:1000;height:1;;border-top:1px dotted #000000"/a6center

style="width:1000;height:1;;border-top:1px dotted #000000"/center7iframe

style="width:1000;height:1;;border-top:1px dotted #000000;" frameborder=no

/iframe8img style="width:1000;height:1;;border-top:1px dotted #000000"

/img9hr size="1" noshade style="height:100;width:1;border:1px dotted

#000000;zoom:2"线条长度=zoom*height10hr size="1" noshade style="border:1px

dotted #000000"部分不能显示请装IE5.5+

js中在一个if条件下关闭浏览器时清除cookie怎么实现

$rootScope.setCookie = function (c_name, value, expiredays)//存入cookie

{

var exdate = new Date();

exdate.setDate(exdate.getDate() + expiredays);

document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());

};

$rootScope.getCookie = function (name)//取出cookie

{

var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");

if (arr = document.cookie.match(reg))

return (arr[2]);

else

return null;

}

$rootScope.clearCookie = function (name)//删除cookie

{

var exp = new Date();

exp.setTime(exp.getTime() - 1);

var cval = $rootScope.getCookie(name);

if (cval != null)

document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();

}

//调用

if (ischeck) {

$rootScope.setCookie("islogin", currentInfo.islogin,30);

$rootScope.setCookie("userid", currentInfo.userid, 30);

$rootScope.setCookie("sign", currentInfo.sign, 30);

} else {//设置过期时间

console.log("立即过期");

$rootScope.setCookie("islogin", currentInfo.islogin);

$rootScope.setCookie("userid", currentInfo.userid);

$rootScope.setCookie("sign", currentInfo.sign);

}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。