实例如下:
//更改边框颜色的代码 $("#shname").css({"border":"1px solid red"});
//排序有时候下标会错乱 不建议使用 建议使用讲师排序代码
*{
margin: 0 auto;
padding: 0;
}
.div{
margin-top: 50px;
width: 800px;
height: 1000px;
}
.tian{
width: 80px;
height: 24px;
background: #5CD6FF;
}
#sp{
width: 150px;
height: 24px;
margin-left: 130px;
border-radius: 10px;
}
#sj{
height: 24px;
margin-left: 20px;
border-radius: 10px;
}
#st{
height: 24px;
margin-left: 30px;
}
#t{
width: 14px;
height: 14px;
position: absolute;
margin-left: -24px;
padding-top: 6px;
}
#t1{
width: 14px;
height: 14px;
position: absolute;
margin-left: -24px;
padding-top: 6px;
}
#table{
margin-top: 50px;
}
.fh1{
background: #FCFC30;
}
.true {
background: greenyellow;
border: 0px;
border-radius: 3px;
}
.false {
background: yellow;
border: 0px;
border-radius: 3px;
}
id
商品名
用户名
手机号
价格
城市
下单时间
状态
{{x.id}}
{{x.sname}}
{{x.name}}
{{x.tel}}
{{x.price|currency:"¥:"}}
{{x.cheng}}
{{x.time|date:"MM-dd HH:mm:ss"}}
以上这篇AngularJs点击状态值改变背景色的实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持考高分网。



