I have never paid much attention to css styles. I have never studied css styles in detail. This time I changed the project's interface, but I can turn my head on it. Well, I am selling it now.
Page
Add this in the middle of
<Style>
. Nodata ...{
Font-size: 11px;
Color: red;
}
</Style>
Apply the style on the page.
<Tr>
<Td>
Today:
</Td>
<Td>
API index:
</Td>
<Td>
<C: if test = "$ {cityDay. pollutionIndeces = null}"> <div class = "nodata"> no data </div> </c: if>
<C: if test = "$ {cityDay. pollutionIndeces! = Null} ">$... {cityDay. pollutionIndeces} </c: if>
</Td>
<Td>
Level:
</Td>
<Td>
<C: if test = "$ {cityDay. grade = null}"> <div class = "nodata"> no data </div> </c: if>
<C: if test = "$ {cityDay. grade! = Null} ">$... {cityDay. grade} </c: if>
</Td>
<Td>
Status:
</Td>
<Td>
<C: if test = "$ {cityDay. status = null}"> <div class = "nodata"> no data </div> </c: if>
<C: if test = "$ {cityDay. status! = Null} ">$... {cityDay. status} </c: if>
</Td>
<Td>
Primary pollutants:
</Td>
<Td colspan = "4">
<C: if test = "$ {cityDay. mainPollutant = null}"> <div class = "nodata"> no data </div> </c: if>
<C: if test = "$ {cityDay. mainPollutant! = Null} ">$... {cityDay. mainPollutant} </c: if>
</Td>
</Tr>
Define a style first, and then reference it on the page. This is the most basic thing. You need to learn more in the future. If you have any questions, you don't need to contact the artist.