jQuery属性操作、循环
1.html()取出或设置html内容
成都创新互联致力于互联网品牌建设与网络营销,包括成都做网站、成都网站设计、SEO优化、网络推广、整站优化营销策划推广、电子商务、移动互联网营销等。成都创新互联为不同类型的客户提供良好的互联网应用定制及解决方案,成都创新互联核心团队10余年专注互联网开发,积累了丰富的网站经验,为广大企业客户提供一站式企业网站建设服务,在网站建设行业内树立了良好口碑。
2.prop()取出或设置某个属性的值
链接
例子二:手风琴
.accordion{
width: 497px;
height: 506px;
float: left;
overflow: hidden;
position: relative;
left: 50%;
margin-left: -250px;
}
.accordion ul{
list-style: none;
padding: 0;
}
.accordion ul li{
width: 413px;
height: 506px;
display: inline-block;
float: left;
}
.accordion li span{
display: inline-block;
width: 20px;
height: 506px;
border-bottom: 1px solid #fff;
}
.accordion li img{
display: inline-block;
}
/*位置一*/
.accordion .pick1{
position: absolute;
top: 0;
background-color: #EF4B4E;
}
.accordion .pick1 span{
position: absolute;
top: 0;
}
.accordion .pick1 img{
position: absolute;
top: 0;
left: 21px;
}
/*位置二*/
.accordion .pick2{
position: absolute;
top: 0;
left: 413px;
background-color: #EC3AF1;
}
.accordion .pick2 span{
position: absolute;
top: 0;
}
.accordion .pick2 img{
position: absolute;
left: 21px;
}
/*位置三*/
.accordion .pick3{
position: absolute;
top: 0;
left: 434px;
background-color: #4866F5;
}
.accordion .pick3 span{
position: absolute;
top: 0;
}
.accordion .pick3 img{
position: absolute;
left: 21px;
}
/*位置四*/
.accordion .pick4{
position: absolute;
top: 0;
left: 455px;
background-color: #4DC1F1;
}
.accordion .pick4 span{
position: absolute;
top: 0;
}
.accordion .pick4 img{
position: absolute;
left: 21px;
}
/*位置五*/
.accordion .pick5{
position: absolute;
top: 0;
left: 476px;
background-color: #4CF750;
}
.accordion .pick5 span{
position: absolute;
top: 0;
}
.accordion .pick5 img{
position: absolute;
left: 21px;
}
-
小南子01
-
小南子02
-
小南子03
-
小南子04
-
小南子05
3.jQuery循环
- 1
- 2
- 3
- 4
- 5
- 6
文章名称:jQuery属性操作、循环
本文网址:http://ybzwz.com/article/jipoop.html