Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブルあり、idなしtd
id
td
<table id='mytable'> <tr> <td> I want to right without id </td> <td> I want to left without id </td> </tr> </table>
最初のコンテンツをtd右揃えにし、2 番目のコンテンツを左揃えにする方法は?
はい、CSSでできます。
これを使って:
table tr td:nth-child(1){ } table tr td:nth-child(2){ }
もっと多くのように。参考サイトはこちら。