Skip to content

Instantly share code, notes, and snippets.

@woshidan
Created March 29, 2014 05:18
Show Gist options
  • Save woshidan/7f18b5de47523ccbb49c to your computer and use it in GitHub Desktop.
Save woshidan/7f18b5de47523ccbb49c to your computer and use it in GitHub Desktop.
css-test
<table>
<tr>
<td style="width: 300px">あああ
</td>
<td width="200px">いいい
</td>
<td>ううう
</td>
</tr>
</table>
<table>
<tr>
<td style="width: 300px" width="200px">あああ
</td>
</tr>
</table>
td.prior {
width: 100px;
}
td{
width: 200px;
}
<table>
<tr>
<td style="width: 300px">
外部ファイルtd VS style属性
</td>
<td width="300px">
外部ファイルtd VS width属性
</td>
<td class="prior" style="width: 300px">
外部ファイルtd.class VS style属性
</td>
</tr>
</table>
td {
width: 100px;
}
td.prior {
width: 100px;
}
td {
width: 200px;
}
<table>
<tr>
<td class="prior">あああ
</td>
</tr>
</table>
td {
width: 100px;
}
td {
width: 200px;
}
td.prior {
width: 100px;
}
td{
width: 200px !important;
}
<table>
<tr>
<td>あああ
</td>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment