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>
...
文档对象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>
...
相关文章推荐
- 刷新页面实现方式总结(HTML,ASP,JS)(
- Intention.js – 动态重构 HTML 为响应式模式
- JS + HTML + JQUERY + CSS WEB前端技术积累
- Zend Studio 安装Aptana插件 (html,css,js代码提示功能)
- HTML用JS导出Excel的五种方法
- IE与FF在js、css、html方面的不兼容问题
- js中将HTMLCollection/NodeList/伪数组转换成数组的代码
- Sublime Text3通过HTML-CSS-JS Prettify自动格式化代码
- HTML特殊字符的html、js、css 写法unicode汇总
- html中引入js,不同时候引入的区别
- js刷新html页面的方法大全
- 静态页面html中跳转传值的JS处理技巧
- JS-----------动态生成的html标签,在使用js获取不到
- Android与HTML的JS 交互
- jsbeautifier + JScript.NET/JavaScript 编程实现 JavaScript、HTML、CSS 代码格式化脚本命令行工具 并集成到 EditPlus
- js去除字符串中所有html标签及 符号
- Vue.js绑定HTML class数组语法错误的原因分析
- html引用外部js和css
- html,js简单保存textarea换行格式
- js innerHTML用法及错误:无法设置未定义或null引用的属性“innerHTML”解决