서로 사이에 2 개의 열이 있어야합니다. 첫 번째는 배경 이미지 여야합니다. 이미지의 "최소"크기. 나머지 2 개는 같은 크기 여야합니다.텍스트 줄 바꿈이있는 3 열
글자를 쓰면 div
은 새 줄을 만들어야합니다.
는 사실은 내가 ...이
<style type="text/css">
body
{
background-color:#484848;
}
#wrapper
{
width: auto;
margin: 0 auto;
display: inline-block;
}
.col
{
display: block;
background: #FFF;
float: left;
height: 200px;
width:100%;
}
</style>
<body>
<div id="wrapper">
<div class="col" style=
"background-image:url(img/Logo.jpg);
width:101px;
height:200px;
background-repeat:no-repeat;"><--! in same line actually -->
</div>
<div class="col">
<table border="0">
<tr>
<td>username</td>
<td><input type="text"></td>
</tr>
<tr>
<td>password</td>
<td><input type="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="login"></td>
</tr>
</table>
</div>
<div class="col">
text
</div>
</div>
</body>
하지만 정말 나쁜 보이는 것처럼
원하는 내가 div 태그를 통해 침입하려는 대신 – jondinham
'범위'태그를 사용하는지 설명하지만 작품을 해달라고하십시오 :( – Roby