Css style entry (create a style template)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.