クラス名が動的に生成されるページがあります。クラスには「writing-mode: tb-rl;」があります。プロパティですが、IE 以外のブラウザで縦書きテキストに必要なその他のプロパティを追加したいと考えています。
JSFiddle の例へのリンク: http://jsfiddle.net/VheJd/1/
完全な HTML:
<html>
<head>
<title>test page</title>
<style type="text/css">
.dynamic_name {
writing-mode: tb-rl;
/*Would like to find the class by the writing-mode property then add the properties below:*/
/*-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);*/
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
//find classes with writing-mode: tb-rl and add -moz-transform etc... properties
});
</script>
</head>
<body>
<table>
<tr>
<td class="dynamic_name">text 1</td>
<td class="dynamic_name">text 2</td>
</tr>
<tr>
<td>hello</td>
<td>world</td>
</tr>
</table>
</body>
</html>