gpt4 book ai didi

页面左侧的 CSS 空白页边距

转载 作者:行者123 更新时间:2023-11-27 22:29:37 25 4
gpt4 key购买 nike

如何在页面左侧留出空白?截图在http://jaakkospage.comyr.com/testi.php CSS 如下:

div.nav {
text-align: center;
}

div.nav ul {
background: #ADD8E6;
border: 1px solid #999;
display: inline-block;
line-height: 2.5em;
list-style: none;
margin: 0 auto;
padding: 0;
white-space: nowrap;
}

div.nav ul li {
display: inline;
margin: 0 1px;
padding: 0;
}

div.nav ul li a {
display: inline-block;
padding: .5em;
text-decoration: none;
vertical-align: middle;
}

div.nav ul li a:hover {
background-color: #48D1CC;
color: #C0FFC0;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>aaa</title> <link type="text/css" rel="stylesheet" href="styles.css" /></head>
<body>
<div id="dokumentti">
<div class="nav">
<ul>
<li><a href="http://www.aaa.freehostingcloud.com/register.php">Rekisteröidy</a>
</li><li><a href="http://www.aaa.freehostingcloud.com/login.php">Kirjaudu sisään</a>
</li></ul>
</div>
</div>
</body>
</html>

最佳答案

#dokumentti {
margin-left: 100px;
}

关于页面左侧的 CSS 空白页边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4134259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com