내가 무엇을해도 브라우저에서 볼 때 내 웹 사이트를 중앙에 놓을 수 없습니다. /. 나는 google/youtube 전체를 보았고 모든 것을 시도했습니다. 이 시점에서 매우 짜증납니다.CSS - 웹 사이트가 브라우저의 중심에 있지 않음
을 Heres 코드 :
<!doctype html>
<html>
<head>
<title>01_Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Save for Web Styles (01_Home.psd) -->
<style type="text/css">
<!--
#Table_01 {
overflow: hidden;
min-width: 1600px;
\t
}
#id01-Home {
\t position:relative;
\t width:1600px;
\t height:8226px;
\t margin:0 auto;
\t }
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
<!-- End Save for Web Styles -->
</head>
<body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0; margin-right: 0px;">
<!-- Save for Web Slices (01_Home.psd) -->
<div id="Table_01">
\t <div id="id01-Home">
\t \t <img src="images/01_Home.jpg" width="1600" height="8226" alt="">
\t </div>
</div>
<!-- End Save for Web Slices -->
</body>
</html>
Google은 나를 위해 ... https : //www.google.com/search? sourceid = chrome-psyapi2 & ion = 1 & espv = 2 & ie = UTF-8 & q = css % 20centering & oq = css % 20centering & aqs = chrome..69i57j0l5.5752j0j7 – MCMastery
div의 높이와 너비가 크기 때문에 중심에 있지 않습니다. 정확히 무엇이 문제인지 알려주세요. – ihemant360