์ด๋ฒ์๋ CSS ๋ฅผ ์ด์ฉํ ์ด๋ฏธ์ง ๊ด๋ จ ์์ฑ์ ์ค์ ํ๋ ๋ฐฉ๋ฒ์ ๋ํด์ ์์๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
-
The border property is used to set the width of an image border.
-
The height property is used to set the height of an image.
-
The width property is used to set the width of an image.
-
The -moz-opacity property is used to set the opacity of an image.
image border ์์ฑ
The border property of an image is used to set the width of an image border. This property can have a value in length or in %.
A width of zero pixels means no border.
Here is the example:
|
๊ฒฐ๊ณผ๋ ์๋์ ๊ฐ์ต๋๋ค.
|
image height ์์ฑ
The height property of an image is used to set the height of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.
Here is the example:
|
๊ฒฐ๊ณผ๋ ์๋์ ๊ฐ์ต๋๋ค.
|
image width ์์ฑ
The width property of an image is used to set the width of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.
Here is the example:
|
๊ฒฐ๊ณผ๋ ์๋์ ๊ฐ์ต๋๋ค.
|
-moz-opacity ์์ฑ
-moz-opacity ์์ฑ์ ์ด๋ฏธ์ง์ opacity๋ฅผ ์ค์ ํ๊ธฐ์ํ ์์ฑ์ ๋๋ค. ์ด ์์ฑ์ Mozilla์์ ์ด๋ฏธ์ง์ ํฌ๋ช ๋๋ฅผ ์ค์ ํ๊ธฐ ์ํ ๊ฒ์ ๋๋ค. IE ๋ filter:alpha(opacity=x) ๋ฅผ ์ฌ์ฉํ์ฃ .
Mozilla์์ (-moz-opacity:x) ์์ฑ์ ์ฌ์ฉํ ๋ x ๊ฐ์ 0.0 ์์ 1.0 ์ ์ง์ ํ ์ ์์ต๋๋ค. ์ซ์๊ฐ ๋ฎ์ ์๋ก ๋ ํฌ๋ช ํด์ง์ฃ .
In IE (filter:alpha(opacity=x)) x can be a value from 0 - 100. A lower value makes the element more transparent.
Here is the example:
<img style="border:1px solid red;-moz-opacity:0.4;filter:alpha(opacity=40);opacity:0.4;" src="/images/css.gif" /> |
๊ฒฐ๊ณผ๋ ์๋์ ๊ฐ์ต๋๋ค.
Reference : http://www.tutorialspoint.com/css/css_images.htm
'๐ป Programming > CSS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[CSS] 11. Table ( ํ ์ด๋ธ ์ค์ ) (0) | 2016.06.12 |
---|---|
[CSS] 10. Links ( ๋งํฌ ์ค์ ) (0) | 2016.06.12 |
[CSS] 8. Text ( ํ ์คํธ ์ค์ ) (0) | 2016.06.12 |
[CSS] 7. Fonts ( ํฐํธ ์ค์ ) (0) | 2016.06.12 |
[CSS] 6. Background ( ๋ฐฐ๊ฒฝ ์ค์ ) (0) | 2016.06.12 |