私はこのcssを使用しています。しかし、IE7とIE8はサポートしていないnth child
ので、jQueryでやりたいので、すべてのブラウザで動作します
#localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(1 /*this is the column number*/){
text-align: center;
width:30px
}
#localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(2 /*this is the column number*/){
width:250px
}
#localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(3 /*this is the column number*/){
width:250px
}
#localFileCopyingDiv, #supplementaryMaterialsDiv, #assetsDiv, table tr td:nth-child(4 /*this is the column number*/){
width:60px
}
#localFileCopyingDiv #supplementaryMaterialsDiv, #assetsDiv table tr td:nth-child(5 /*this is the column number*/){
width:220px
}
#courseInfoDiv table tr td:nth-child(1 /*this is the column number*/){
width: 200px;
}
#courseInfoDiv table tr td:nth-child(2 /*this is the column number*/){
width: 600px;
}
上記のcssをjQueryに変換するにはどうすればよいですか?
ありがとう
編集: ------------------------------------------------
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Status Report</title>
<script type="text/javascript" src="javascript/jquery-1.9.1.min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="javascript/selectivizr-min.js"></script>
<noscript><link rel="stylesheet" href="brands/default/en/css/exportComplete.css" /></noscript>
<![endif]-->
<script type="text/javascript" src="javascript/jquery-migrate-1.2.1.js"></script>
<link rel="stylesheet" type="text/css" href="brands/default/en/css/exportComplete.css" />
</head>
大丈夫ですか?