코드로 함 해봤는데 잘 안되네요...
레오
코드는 아래와 같구요.
ie7에서는 마진이 상하로 4px씩 자동생성되고,
ie6에서는 마진이 상하로 1px씩 자동생성됩니다.
이것들을 없애는 방법이나,
ie6,7,8에서 모두 동일하게 나오는 방법이 있다면 코드로 좀 만들어주시거나
설명해주시면 감사하겠습니다. ㅜㅜ
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html xmlns=http://www.w3.org/1999/xhtml
head
title/title
style type=text/css
body
{
margin: 0px;
}
.inputRed
{
background-color: Red;
}
.inputBlue
{
background-color: Green;
}
input
{
padding: 0px;
border: none;
}
p
{
display: inline;
margin: 0px;
}
#test
{
background-color: Black;
}
#test2
{
background-color: Olive;
}
/style
/head
body
div id=test
pinput class=inputRed type=text name=name //ppinput class=inputBlue type=text name=name //p
/div
div id=test2
pinput class=inputRed type=text name=name //ppinput class=inputBlue type=text name=name //p
/div
/body
/html
-
핑크빛애교
아... 크롬에서는 안먹히네요 이거 ㅜㅜ
-
날개
익스6,7은 상하단1px 마진이 존재합니다.변태적인 경우죠..
css 리셋에 넣고 사용하시면 됩니다.
* html input {margin:-1px 0;}
*:first-child+html input {margin:-1px 0} -
석죽
번개........