JSFiddle - React, Tailwind, and code Playground

HTML

<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in 2nd row and 1st col.</caption
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td></tr
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td></tr
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td></tr></table>
<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in 2nd row and 1st col.</caption
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td><td><button>button2</button></td></tr
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td><td><button>button2</button></td></tr
><tr><td style="width: 80%;">aaa</td><td><button>button1</button></td><td><button>button2</button></td></tr></table>
<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in 2nd row and 1st col.</caption
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td></tr
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td></tr
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td></tr></table>
<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in 2nd row and 1st col.</caption
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td><td><input type="button" value="input2"></td></tr
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td><td><input type="button" value="input2"></td></tr
><tr><td style="width: 80%;">aaa</td><td><input type="button" value="input1"></td><td><input type="button" value="input2"></td></tr></table>
<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in 2nd row and 1st col.</caption
><tr><td style="width: 80%;">aaa</td><td>bbb</td></tr
><tr><td style="width: 80%;">aaa</td><td>bbb</td></tr
><tr><td style="width: 80%;">aaa</td><td>bbb</td></tr></table>
<table style="width: 100%;"
><caption>Long tap at the right of "aaa" in...

CSS

table, td {
  border: 1px solid;
}