私が何をしても、ブラウザで見るときに私のウェブサイトを中央に置くことはできません。私はgoogle/youtubeの全部を見て、すべてを試しました。この時点で非常に迷惑になります。CSS - ウェブサイトがブラウザの中心にない
相続コード:
<!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