jquery修改iframe上层元素信息
$(document).ready(function() { var bodyheight=document.body.clientHeight;//获取屏幕可视区高度 $(parent.document.body).css(“height”,bodyheight+”px” …
$(document).ready(function() { var bodyheight=document.body.clientHeight;//获取屏幕可视区高度 $(parent.document.body).css(“height”,bodyheight+”px” …
js判断是否为六位连续数字或相同数字 <script> function test(s) { if (!/^\d{6}$/.test(s)) return false; // 不是6位数字 if (/^(\d)\1+$/.test(s)) return false; //6位相同数字 var str = s …
js 获取标签class及其他自定义属性的代码片段: classname=getElementById(“id”).getAttribute(“class”); classname=getElementById(“id”).getAttribute …
jquery点li里的a标签后改变a标签文本的颜色为红色,没点的显示黑色。注li的数量不确定 <div class=”a”> <ul id=”tab_ul”> <li><a href=””>宅库女优& …
jQuery 的选择器可谓之强大无比,这里简单地总结一下常用的元素查找方法 $(“#myELement”) 选择id值等于myElement的元素,id值不能重复在文档中只能有一个id值是myElement所以得到的是唯一的元素 $(“p”) 选 …
以下内容来自百度知道 ============ 1、直接document.write <script language=”javascript”> document.write(“<script src=’http://web.zhaicool.net/ …
当line-height的高度跟标签高度相等时,就会居中!干了两年前端了,特么刚知道这个技巧,你们为什么才告诉我!!! header { height: 160px; line-height:160px; } header img { width: auto; height: 140px; margin-left: 1 …
text-shadow是css3处理文字阴影效果的属性,其取值如下: text-shadow:颜色 x轴偏移量 Y轴偏移量 阴影扩散量 举例: text-shadow: #262626 3px 3px 5px; 很简单,不多说了,就酱。
方法一:在css里用@media (max-width:330px){}。比如 @media (max-width:320px){} @media (max-width:414px){} @media (max-width:900px){} 方法二:在link里指定: <link rel=”stylesheet” …
Javascript: 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeig …