您的位置:首页 > Web前端 > JavaScript

js html

2015-05-26 00:10 169 查看
1、dom

文档对象document

2、bom

浏览器对象

window

Screen

History

3、根据浏览器设置样式

$(document).ready(function(){

                if (navigator.userAgent.indexOf("MSIE")>0){

                        $("#next .img-switch-btn").css("left","90%");

                        $("#prev .img-switch-btn").css("filter","");

                        $("#prev .img-switch-btn").css("background","url('http://img1.bdstatic.com/static/detailnew/img/slider_btn_icon_0624374.png') no-repeat 0 -80px");

                    }

                })

4、实现常用效果的方式

。。。

5、CSS(层叠样式表)

标签装饰

选择方式()

  

<style>

p{

}

p.class1{

}

.class2{

}

#id1{

}

p,h1{

}

p h1{

}

</style>

...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: