↓↓选择一款你喜欢的背景皮肤吧!↓↓
{WEB前端技术分享,APP开发,PHP编程学习}
(*必填)
(选填)
[ 请确保填写正确的邮箱地址,您的留言审核通过会收到邮件通知! ]
[请申请gravatar头像,木有头像的评论可能不会被回复]
【查看更多】提示:发表说说,请登录
示例:假设要定义背景图像在容器中右下方,并且距离右边和底部分别有20px 、10px
background:url(xx.jpg) no-repeat right 10px bottom 20px;
遗憾的是:css3这个属性,ie6~8都是不支持的!
解决方法:
要直接获取顶级窗口,可直接在test.php里面写入 this.parent,this指向加载test.php页面的iframe标签,或者加入下面判断:
var win = art.dialog.top;
document.domain==”xx.com”?win=win.parent:””;
Win7系统打开凭据管理器:”控制面板-凭证管理器”,添加凭证即可,具体操作:
https://jingyan.baidu.com/article/5553fa82edfbc765a239341f.html
118.174.27.112
173.194.1.13
173.194.1.15
118.174.27.123
118.174.27.210
<label>
<input type=”radio” />
<i>111</i>
<img src=”” alt=”” />
</label>
label>input 这样的层级结构下,再给label加额外的click点击事件,会使点击事件重复执行2次,解决方法:
点击事件中,加点击对象判断:
if(!$(event.target).is(“input”)) return;
$(document).scrollTop(xxx);
$(window).scrollTop(xxx);
上述写法都正确,可执行,但:
$(“html,body”).css({scrollTop:xxx});
这种写法是错误的,解析详见:
https://www.phpvar.com/archives/2837.html
95.173.210.42
别附获取google可用ip工具:
huhamhire-hosts自动更新Google Hosts文件教程
https://www.xiazaiba.com/jiaocheng/972.html
<div id=”abc”></div>
<script>
abc.innerHTML=”不用document.getElementById ,直接用id名就可引用dom对象,浏览器全兼容!”;
</script>
这种写法确实没问题,但不够直观,容易让人产生疑问!
_width:expression((document.documentElement.clientWidth||document.body.clientWidth)<900?"900px":"");
artDialog.fn.version
console.clear();
更多console命令:
https://liuxiaofan.com/2013/12/12/1582.html
if ( typeof define === “function” && define.amd ) {
define( “jquery”, [], function() {
return jQuery;
});
}
可以使用 jquery 内部提供的属性,虽然 jquery 并没有公开这个属性,但你仍然可以使用它,在载入jquery 的情况下:
$.fn.jquery 或 $().jquery
隐藏元素本身:可以通过.width()/.height()来获取宽、高的,但不能获取到其offset()值;
隐藏元素的子元素:子元素的width、height、offset值都不能正常获取.
实现思路:保证获取子元素width、height 或坐标offset()值时,隐藏层是处于显示状态即可
变通方法1: 先显示隐藏层,获取子元素信息后,立即隐藏
<div class=”demo”>
隐藏层里面的子元素怎么获取其width、height 或坐标offset()值,如:<a href=”javascript:;” class=”element”>能获取我的元素信息?</a>
</div>
<script>
// console.log(“.demo隐藏时,获取子元素.element的宽度:”+$(“.element”).width());
// 实现思路:保证获取子元素width、height 或坐标offset()值时,隐藏层是处于显示状态即可
// 变通方法1:
// 先显示隐藏层,获取子元素信息后,立即隐藏
$(“.demo”).show();
console.log(“.demo隐藏时,获取子元素.element的宽度:”+$(“.element”).width());
$(“.demo”).hide();
// 变通方法2:
// 点击事件中初始化获取子元素信息
$(“.link”).on(‘click’, function(event) {
event.preventDefault();
$(“.demo”).show();
console.log(“.demo隐藏时,获取子元素.element的宽度:”+$(“.element”).width());
$(“.demo”).show();
});
</script>
隐藏上传进度条,默认无配置选项,可在实例中加入:
‘onInit’: function() { // 隐藏进度条
$(“.uploadify-queue”).hide();
}
上传按钮,鼠标hover效果默认是加在.uploadify:hover .uploadify-button上的!
C:\Users\Administrator\.WebStorm9\config\colors
https://jingyan.baidu.com/article/25648fc1a589c89191fd00bc.html
173.194.121.28
ping ad.doubleclick.net 查看下谷歌广告域名所指向的ip,即可获取谷歌google最新可访问IP!!
https://share.baidu.com/code/advance#summarize
安装多个不同分享类型的按钮
https://share.baidu.com/help/multiple
<a href=”#” onclick=”abc();” rel=”nofollow”>测试</a><a href=”javascript:alert(333);” id=”ab” rel=”nofollow”>链接</a>
<script>
function abc (argument) {
document.getElementById(“ab”).click();
}
</script>
w3school有提到模拟HTML DOM Button 对象按钮上的一次鼠标单击:
https://www.w3school.com.cn/jsref/met_button_click.asp
但没提到能模拟a标签的点击事件:https://www.w3school.com.cn/jsref/dom_obj_anchor.asp
经测试:原生js,也能类似jquery,直接在对象调用.click()方法模拟a、input标签的点击事件,浏览器全兼容!
https://developer.chrome.com/devtools/docs/settings
<style>header{display: block;}</style>
<script>
document.createElement(“header”);
</script>
更完善的做法:
引用https://github.com/aFarkas/html5shiv 的html5shiv.js,如: