本文目錄一覽:
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);
}
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/309201.html