'프로그래밍 > Html' 카테고리의 다른 글
태그의 attribute 값 가져오기, 설정하기. (0) | 2013.02.25 |
---|---|
html 특수 문자. (2) | 2011.05.30 |
input file 에 value 이용하기. (0) | 2010.12.02 |
textarea style (0) | 2010.02.25 |
Frame 에서 가로 스크롤 없애기. (0) | 2010.02.23 |
태그의 attribute 값 가져오기, 설정하기. (0) | 2013.02.25 |
---|---|
html 특수 문자. (2) | 2011.05.30 |
input file 에 value 이용하기. (0) | 2010.12.02 |
textarea style (0) | 2010.02.25 |
Frame 에서 가로 스크롤 없애기. (0) | 2010.02.23 |
<input type="text" name="" value="" style="ime-mode:active;">
[ime-mode의 옵션]
auto : 한/영 변환이 자유로움.
active : 한글 기본, 한/영 변환이 자유로움
inactive : 영문 기본, 한/영 변환이 자유로움
disabled : 영문 기본, 한/영 변환이 안됨, 영문/숫자만 입력 가능
Frame 에서 가로 스크롤 없애기. (0) | 2010.02.23 |
---|---|
select 태그의 option 값들.. (0) | 2009.07.14 |
tr 의 style - display 불여우(파이어폭스) 문제점 해결.. (0) | 2009.02.11 |
불여우(FireFox)에서 투명효과 사용하기 (1) | 2009.02.11 |
Div Style (0) | 2009.02.11 |
function showplatformrow()
{
if (SearchForm.ItemType.selectedIndex == 1)
{ document.getElementById('ProductRow').style.display = 'block'; }
else
{
SearchForm.Platform.selectedIndex = 0;
document.getElementById('ProductRow').style.display = 'none';
}
}
select 태그의 option 값들.. (0) | 2009.07.14 |
---|---|
HTML INPUT 텍스트박스 한글 영문 숫자 입력설정 (0) | 2009.02.11 |
불여우(FireFox)에서 투명효과 사용하기 (1) | 2009.02.11 |
Div Style (0) | 2009.02.11 |
<DIV> 태그 border 셋팅 (0) | 2009.02.11 |
Cross Browsing 위해 개발중에 찾은 자료이다.
IE에서는 Filter라는 스타일을 통해 투명도를 조절하지만
FF에서는 먹히지 않기에 검색해서 보니 Opacity 속성이 있었다.
이것을 양브라우져간에 공통되게 쓰기 위해서는 약간의 트릭이 필요 하다.
filter:alpha(Opacity:50,style:0);Opacity:.5
원문 : http://nariya.net/blog/entry/불여우에서-투명효과-사용하기
꾸미기를 좋아하시는 분들은 보통 MS Internet Explorer 6(이하 IE)에서 작업을 하시더라구요. 어떠한 이유에서인지 모르겠지만, 아마도 IE가 여러가지 태그 하위 속성에 있는 Style이 Filter라는 비표준(?)적이면서도 '예쁜' 기능을 지원하기 때문이라고 조심스럽게 추측해 봅니다(...)
이번에 제가 들고 온 내용은 IE에서 사용하는 Filter 중에서 Alpha라는 녀석을 Mozila FireFox(이하 불여우)에서도 사용해 보자는 것이랍니다-♬ 사실 Style이라는 태그 하위 속성은 불여우에서도 동일하게 적용되지만, 단지 Filter:xxx의 방식은 사용하지 않기 때문에 IE의 방식대로 하면 의도대로 나타나지 않게 되죠. 그래서 이제부터 그 비밀을 소개하도록 하겠습니다~
|
|
IE를 위한 투명 효과 |
불여우를 위한 투명 효과 |
<img src="xxx" style="filter:alpha(Opacity:50,style:0)"> |
<img src="xxx " style="Opacity:.5"> |
|
모두(?)를 위한 투명 효과 |
<img src="xxx" style="filter:alpha(Opacity:50,style:0);Opacity:.5"> |
HTML INPUT 텍스트박스 한글 영문 숫자 입력설정 (0) | 2009.02.11 |
---|---|
tr 의 style - display 불여우(파이어폭스) 문제점 해결.. (0) | 2009.02.11 |
Div Style (0) | 2009.02.11 |
<DIV> 태그 border 셋팅 (0) | 2009.02.11 |
table, tr, td 속성 (0) | 2009.02.11 |
overflow: ######;
visible : 레이어 크기를 키워서 출력.
hidden : 레이어 크기만큼 출력.
auto : 내용에 따라 자동 스크롤.
scroll : 스크롤바 생성.
ex) overflow-x:값; overflow-y:값; overflow:값;
position: ######;
static : 기본값.
relative : 하위에 div가 있을 경우엔 하위의 div를 absolute 배열.
absolute : div에 top, right, bottom, left 값을 지정해서 원하는 위치에 고정.
fixed : 스크롤에 상관없이 지정한 위치에 고정.
inherit : 상위에서 지정한 값을 상속.
visibility: ######;
visible : 보임.
hidden : 감춤.
z-index: #; :: #값에 따라 우선순위 정의. (값이 높을 수록 위로)
left: ##px;
top: ##px;
width: ###px;
height: ###px;
text-align: center;
center , left, right ...
background-color: #######;
border-style: ######;
solid , dotted .....
border-color: ######;
border-width: ##px;
border: ###px;
tr 의 style - display 불여우(파이어폭스) 문제점 해결.. (0) | 2009.02.11 |
---|---|
불여우(FireFox)에서 투명효과 사용하기 (1) | 2009.02.11 |
<DIV> 태그 border 셋팅 (0) | 2009.02.11 |
table, tr, td 속성 (0) | 2009.02.11 |
table display Example (0) | 2009.02.11 |
불여우(FireFox)에서 투명효과 사용하기 (1) | 2009.02.11 |
---|---|
Div Style (0) | 2009.02.11 |
table, tr, td 속성 (0) | 2009.02.11 |
table display Example (0) | 2009.02.11 |
DTD (0) | 2009.02.11 |
웹문서 제작에 가장 숙련도를 요구하는 태그로 TABLE 태그가 있다. 웹문서에서 TABLE 태그는 내용물 전체의 배치를 위한 뼈대를 제공하고, 내용물을 직접 나타내기도 하며, 이미지와 더불어 디자인의 중요한 한 요소를 차지하고 있다. 웹문서 제작에 있어 많은 시간을 들이는 부분이기도 하고 문서 내 태그 중에 대부분을 차지하기도 한다. 실제 서비스되는 웹문서에서 모든 내용물은 테이블 속에 담겨져 있다고 가정하면 된다. 표는 줄(row)과 칸(column) 그리고 셀(cell)로 이루어지고, 셀은 줄과 칸이 만나 이루어진 곳으로 표의 내용이 들어가는 곳을 의미한다.
table 태그는 표의 시작과 끝을 정의하고
tr 태그는 표의 행을 정의하며(table row)
td 태그는 행을 이루는 열을 정의한다(table data).
따라서 위의 태그들은 홀로 사용될 수 없고 <td>~</td>가 모여 <tr>~</tr> 을 구성하고 <tr> ~ </tr>가 모여 </table>~</table> 을 이루게 된다.
가장 간단한 표라도 다음과 같이 한줄 한칸 짜리 표로 이루어지며 표에 들어갈 내용은 <td> ~</td> 사이에만 들어갈 수 있다.
<table> | 표 | |||||
<tr> | 한줄 | |||||
<td> | 한칸 | |||||
표 속에 들어갈 내용은 여기!!! | ||||||
</td> | ||||||
</tr> | ||||||
</table> |
TABLE Element | |||||
align |
| ||||
background |
| ||||
bgcolor |
| ||||
border |
| ||||
height |
| ||||
width |
| ||||
nowrap |
| ||||
cellpadding |
| ||||
cellspacing |
| ||||
bordercolor |
| ||||
bordercolordark |
| ||||
bordercolorlight |
|
TR(Table Row) Element | |||||
align |
| ||||
valign |
| ||||
bgcolor |
| ||||
height |
| ||||
width |
| ||||
nowrap |
| ||||
bordercolor |
| ||||
bordercolordark |
| ||||
bordercolorlight |
|
TD(Table Data) Element | |||||
align |
| ||||
valign |
| ||||
background |
| ||||
bgcolor |
| ||||
height |
| ||||
width |
| ||||
nowrap |
| ||||
colspan |
| ||||
rowspan |
|
테이블 여백 조절하기
cellpadding : 테두리 선과 내용 사이의 여백 조절
cellspacing : 셀과 셀 사이의 여백 조절
cellpadding=0 / cellspacing=0
cellpadding=20 / cellspacing=10
cellpadding=0 / cellspacing=30
Div Style (0) | 2009.02.11 |
---|---|
<DIV> 태그 border 셋팅 (0) | 2009.02.11 |
table display Example (0) | 2009.02.11 |
DTD (0) | 2009.02.11 |
Div 와 Span (0) | 2009.02.11 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Hiding Information in Rows and Cells Sample</title>
<meta http-equiv="Content-Type" content="text/html; CHARSET=iso-8859-1">
<meta name="AUTHOR" content="InetSDK">
<meta name="MS.LOCALE" content="EN-US">
<meta name="ROBOTS" content="noindex">
<link rel="stylesheet" href="samplesSDKIE4.css" type="text/css">
<style type="text/css">
td {
border: 1px solid;
}
</style>
<script type="text/javascript">
function getPets() {
tblChoice1.style.display="none";
tblChoice2.style.display="";
tblChoice3.style.display="none";
}
function getOthers() {
tblChoice1.style.display="";
tblChoice2.style.display="none";
tblChoice3.style.display="";
}
function getFast() {
tblChoice1_1.style.visibility="visible";
tblChoice2_1.style.visibility="visible";
tblChoice3_1.style.visibility="hidden";
}
function getSlow() {
tblChoice1_1.style.visibility="hidden";
tblChoice2_1.style.visibility="hidden";
tblChoice3_1.style.visibility="visible";
}
function showallRows() {
tblChoice1.style.display="";
tblChoice2.style.display="";
tblChoice3.style.display="";
}
function showallCells() {
tblChoice1_1.style.visibility="visible";
tblChoice2_1.style.visibility="visible";
tblChoice3_1.style.visibility="visible";
}
</script>
</head>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<body>
<div class="body">
<h1>Hiding Information in Rows and Cells Sample</h1>
<p>This example shows use of the <b>display</b> property applied to table rows
and the <b>visibility</b> property applied to table cells. Each button calls
a function that sets the display properties depending on the user's selection.</p>
<p>Displaying cells within a row is dependent on the row being displayed. Accordingly,
displaying a cell with an animal's speed will show only if the corresponding
row is also displayed. </p>
<p>Note that an embedded style sheet sets the <b>td</b> element's style to {border:
1px solid}. </p>
<center>
<table>
<tr id="tblChoice1">
<td>Horses</td>
<td id="tblChoice1_1">Thoroughbreds</td>
<td>Fast</td>
</tr>
<tr id="tblChoice2">
<td>Dogs</td>
<td id="tblChoice2_1">Greyhounds</td>
<td>Fast</td>
</tr>
<tr id="tblChoice3">
<td>Marsupials</td>
<td id="tblChoice3_1">Oppossums</td>
<td>Slow</td>
</tr>
</table>
<p>
<input type="button" style="width: 150px" ="getPets()" value="Show household pets">
<input type="button" style="width: 150px" ="getOthers()" value="Show outdoor pets">
</p>
<p>
<input type="button" style="width: 150px" ="getFast()" value="Show fast animals">
<input type="button" style="width: 150px" ="getSlow()" value="Show slow animals">
</p>
<p>
<input type="button" ="showallCells();showallRows()" value="Refresh">
</p>
</center>
<!-- START_PAGE_FOOTER --><br>
<br>
<br>
<p class="viewsource">[Right-click and choose View Source from the shortcut
menu.] </p>
<a class="copyright" href="http://www.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm">
?2007 Microsoft Corporation. All rights reserved. Terms of use.</a>
<!-- END_PAGE_FOOTER --></div>
</body>
</html>
<DIV> 태그 border 셋팅 (0) | 2009.02.11 |
---|---|
table, tr, td 속성 (0) | 2009.02.11 |
DTD (0) | 2009.02.11 |
Div 와 Span (0) | 2009.02.11 |
색상표코드 알아보는 프로그램 (0) | 2009.02.11 |
HTML의 a태그로 만들어진 링크에는, 기본적으로 항상 밑줄(Underline)이 붙습니다.
Div 와 Span (0) | 2009.02.11 |
---|---|
색상표코드 알아보는 프로그램 (0) | 2009.02.11 |
border-style (0) | 2009.02.11 |
윈도우 크기 변화에 따른 폼 속성 크기 변경 (0) | 2009.02.11 |
한글 깨짐 현상 (0) | 2009.02.11 |
색상표코드 알아보는 프로그램 (0) | 2009.02.11 |
---|---|
css !important (0) | 2009.02.11 |
윈도우 크기 변화에 따른 폼 속성 크기 변경 (0) | 2009.02.11 |
한글 깨짐 현상 (0) | 2009.02.11 |
css 사전. (1) | 2009.02.11 |