css selector的IE用法
来源:互联网 发布:java api 1.8中文 chm 编辑:程序博客网 时间:2024/04/30 11:02
.tr1{
ie-only:expression( this.className=(this.rowIndex % 2==0)?"red":"blue" );
}
<style>
.red{
color:red;
}
.blue{
color:blue;
}
</style>
<table id="myTable">
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
</table>
<script language="javascript">
var oTable=document.getElementById("myTable");
for(var i=0;i<oTable.rows.length;i++){
var oRow=oTable.rows(i);
if(oRow.rowIndex %2 ==0){
oRow.className="red";
}else{
oRow.className="blue";
}
}
</script>
ie-only:expression( this.className=(this.rowIndex % 2==0)?"red":"blue" );
}
<style>
.red{
color:red;
}
.blue{
color:blue;
}
</style>
<table id="myTable">
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
<tr class="tr1">
<td>adasd</td>
</tr>
</table>
<script language="javascript">
var oTable=document.getElementById("myTable");
for(var i=0;i<oTable.rows.length;i++){
var oRow=oTable.rows(i);
if(oRow.rowIndex %2 ==0){
oRow.className="red";
}else{
oRow.className="blue";
}
}
</script>
阴影文字的css
font-weight: bold;
font-size: 18px;
filter: glow(color=#000000, strength=1) dropshadow(color=#000000, offx=2, offy=1, positive=1);
color: #ffffff;
line-height: 140%
- css selector的IE用法
- Selector的用法
- android selector的用法
- selector的用法
- selector的用法
- java的selector用法
- Android的selector用法
- android:selector的用法
- android的selector用法
- 安卓中selector的用法
- Selector的用法
- selector的最佳用法
- Selector的用法
- android selector的用法
- selector的具体用法
- CSS实例教程:CSS Selector的优先级
- Android中的Selector的用法
- Android中selector的用法
- sqlite移植
- JasperReport+iReport高级报表设计实战
- Oracle体系结构简介-数据库专家
- 精妙Sql语句
- 解决无法显示隐藏的文件的问题
- css selector的IE用法
- ASP.NET中文显示之两种解决方法
- 精妙sql
- vs2005中的一些快捷技巧
- ASP.Net处理QueryString函数汉字参数传递错误
- Oracle体系结构:内存结构和进程结构
- 分页的性能提高
- Spring2.0中的定时调度(Scheduling)
- 为智能设备创建 ATL 多平台 ActiveX 控件