336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

css 글자색을 적용해보겠습니다.

file.css

#d{
 color:blue;
 background-color:red;
}
span{
 color:red;
 background-image:url(./XtoX.png);
}

 

1) background-color : 배경색

ex) background-color:red;

2) background-image:url(위치) : 위치는 css가 포함되어 있는 파일기준

​ex) background-image : url(./image.png);

3) background-repeat : 그림의 반복여부 (repeat, no-repeat, repeat-x, repeat-y) // repeat가 기본

ex) background-repeat : repeat;

4) background-attachment: 고정할 것인지, 스크롤할 것인지 정합니다.(fixed, scroll) // scroll 기본

ex) background-attachment:fixed;

 

5) background-position: 그림의 위치(left,center,right) (top,center,bottom), x% y%, xpx ypx;

//left top 기본

ex) background-position:center center;

 

6) background-size: 그림의 크기를 늘려줍니다. auto, cover, contain, 가로% 세로%, 가로px 세로px;

​ex)

background-size:100px 100px;

 

<link rel="stylesheet" type="text/css" href="./cssfile/file.css">

'CSS' 카테고리의 다른 글

레이어팝업으로 PDF 파일 띄우기  (0) 2020.03.10
CSS 적용하는 3가지 방법  (0) 2015.05.30
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

1. 직접 코드에 style로 넣기

EX) <span style="color:red">테스트</span>

 

2. 같은 파일 상단에 style넣기

EX) <style type="text/css">

ID기준으로 적용

#d{
 color:blue
}

 

태그기준으로 적용

span{
 color:red
}

       </style> 

 

 

3. 다른파일로 만들어서 link이용하기

<link rel="stylesheet" type="text/css" href="./cssfile/file.css">

 

 

2,3 번의 사용예제

<div id="d">div</div>

<span>span></span>

css사용법에 대해서 설명해드렸습니다.

'CSS' 카테고리의 다른 글

레이어팝업으로 PDF 파일 띄우기  (0) 2020.03.10
css 글자색과 배경옵션  (0) 2015.05.30
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

Log4j Maven에 추가하기 입니다.

<!--Maven log4j -->

   <dependency>

      <groupId>log4j</groupId>

      <artifactId>log4j</artifactId>

      <version>1.2.14</version>

      <scope>runtime</scope>

   </dependency> 

 

-----------------------------------------------------------------------------------------------------------

Json Maven에 추가하기 입니다.

<!-- json -->

<!--core -->

               <dependency>

                       <groupId>org.codehaus.jackson</groupId>

                       <artifactId>jackson-core-asl</artifactId>

                       <version>1.9.12</version>

               </dependency>

              

<!--mapper -->

               <dependency>

                       <groupId>org.codehaus.jackson</groupId>

                       <artifactId>jackson-mapper-asl</artifactId>

                       <version>1.9.12</version>

               </dependency>

 

-----------------------------------------------------------------------------------------------------------

 

Tiles Maven에 추가하기 입니다.

<!-- tiles -->

               <dependency>

                <groupId>org.apache.tiles</groupId>

                <artifactId>tiles-jsp</artifactId>

                <version>2.2.2</version>

            </dependency>

            <dependency>

                <groupId>org.apache.tiles</groupId>

                <artifactId>tiles-core</artifactId>

                <version>2.2.2</version>

            </dependency>

 

-----------------------------------------------------------------------------------------------------------

IO Maven에 추가하기입니다.

<!–commons-fileuploads–>
<dependency>
       <groupId>commons-fileupload</groupId>
       <artifactId>commons-fileupload</artifactId>

        <version>1.2.1</version> <!– makesure correct version here –>
</dependency>

 

<dependency>

           <groupId>commons-io</groupId>

           <artifactId>commons-io</artifactId>

           <version>1.4</version>

</dependency>

 

-----------------------------------------------------------------------------------------------------------

Ojdbc Maven에 추가하기 입니다.

<dependency>
               <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>11.2.0.3</version>
        </dependency>

 

 pom.xml 상위 저장소 추가

<repositories>
           <repository>
                     <id>mesir-repo</id>
                     <url>https://code.lds.org/nexus/content/groups/main-repo</url>
           </repository>
</repositories>

 

'MAVEN' 카테고리의 다른 글

Maven Plugin 설정하기  (0) 2015.05.28

+ Recent posts