This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11052|Reply: 0

[Angular] Angular 9 Series (XI) 5 Ways to Define Styles

[Copy link]
Posted on 7/13/2020 4:03:18 PM | | | |
Angular 9 Series (1) Dynamically Loaded Components
https://www.itsvse.com/thread-9238-1-1.html

Angular 9 series (2) dynamic component transmission parameters
https://www.itsvse.com/thread-9245-1-1.html

Angular 9 series (3) subscribes to dynamic component events
https://www.itsvse.com/thread-9246-1-1.html

Angular 9 Series (IV) Custom Pipe pipelines
https://www.itsvse.com/thread-9248-1-1.html

Angular 9 Series (V) formats the amount currency format
https://www.itsvse.com/thread-9249-1-1.html

Angular 9 series (VI) calls native JS variables and methods
https://www.itsvse.com/thread-9254-1-1.html

Angular 9 series (VII) CSS-style scope
https://www.itsvse.com/thread-9264-1-1.html

Angular 9 series (VIII) updates the value of a child component by triggering an event via set
https://www.itsvse.com/thread-9267-1-1.html

Angular 9 Series (nine) #id selector applied on the page
https://www.itsvse.com/thread-9278-1-1.html

Angular 9 series (10) embeds vconsole and eruda developer debugging panels
https://www.itsvse.com/thread-9286-1-1.html


When learning CSS stylesheets, the following three ways are commonly used to define baiCSS in HTML: embedding (embedded du), zhiLinking (referential), and Inline (inline).

This article uses 5 ways to style a div:

  • Set the div background color to red
  • Set the width and height to 100px
  • Set the font size to 20px
  • Set the font color to white
  • Set a black border


The renderings are as follows:



The code is as follows:

(End)





Previous:SQL Server cross-database migration data synchronization
Next:(Error) cvc-datatype-valid.1.2.1: 'xx' is not a valid value for 'gYearMonth'.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com