Learning about basic css

Although the development of java web do have half a year, but on some sites use a little css and js or do not know much about, especially the css, just compare the recent air, css and js intends to study the system.

Style three way call
1. <style Type="text/css">
h1 (font-size: 16pt; color: red)
h2 (font-size: 10pt; color: green)
</ style>

2. <h1> Hello </ h>
<h2> hello </ h>

3. <link Rel=stylesheet href="03.css" type="text/css"> </ link>

The third general approach we have adopted

Emergence of a number of style when the time taken to the nearest principle

css selector
p.code (font-size: 20pt; color: red)
p.comment (font-size: 10pt; color: green)
<pre> </ pre> is to retain the format of the middle

Class selectors: class.
ID selectors: id #
. code (font-size: 20pt; color: red) is the code of any class in this format at all times
# code (font-size: 20pt; color: red) is the id of any city code when using this format

h1, p (font-size: 20pt; color: red) can be specified with a number of
pa (font-size: 20pt; color: red) p inside of a
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Learning about basic css

  • Hibernate configuration parameters hibernate.hbm2ddl.auto

    Hibernate in the configuration file: <properties> <property name="hibernate.hbm2ddl.auto" value="create" /> </ properties> Parameter Description: validate load hibernate, the authentication to create a database t ...

  • Build flex + spring + blazeds + hibernate application

    Build flex + spring + blazeds + hibernate application First, set up the project blazeds 1, will blazeds.war extract to a directory, such as: myflex /; 2, set up java works were such as: MyFlex, in the orientation of selection create project from exis ...

  • Hibernate connection pool configuration

    Hibernate connection pool configuration <! - Jdbc -> <property name="connection.driver_class"> oracle.jdbc.driver.OracleDriver </ property> <property name="connection.url"> jdbc: oracle: thin: @ 10.203.14.1 ...

  • hibernate to use the principle of

    The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the use of the process are the following steps: 3.1: Ge ...

  • hibernate generic generic DAO

    hibernate generic generic DAO

  • First Hibernate Example

    Curd a simple example. Source does not contain the dependent libraries, or playing too much of the package. PO object Note: One must have the default constructor 2 non-final modified. Otherwise useless lazy loading. UserDAOImpl category code, and oth ...

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

  • Hibernate secondary cache

    Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...

  • Hibernate's lazy strategy

    hibernate Lazy strategy can be used in: <class> tag, it can be true / false Tags can <PROPERTY> values true / false type of necessary tools to enhance <set> <list> can tag values true / false / extra <many-to-one> <on ...

Leave a Reply

Recent
Recent Entries
Tag Cloud
Random Entries