I am working on a reporting application that pulls info from different servers and displays them in a specific format. I am also making this completely responsive so the tables that I get look something like this:
<table>
<tr>
<td width="30%">Date</td>
<td width="40%">Description</td>
<td width="17%">Result</td>
<td width="15%">Range</td>
<td width="8%">Comments</td>
</tr>
</table>
I want to know how I could add data-label to each depending on what width they have.
like
<td width="30%" data-label="Date">Date</td>
I don't actually need the date field so I have hidden that entire field with CSS its just the description, result, range and comments.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…