我有这样的HTML
文件:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<link type='text/css' href='https://fonts.googleapis.com/css?family=Cantarell:700,400' rel='stylesheet'>
<link type='text/css' href='https://fonts.googleapis.com/css?family=Play:700,400' rel='stylesheet'>
<link type="text/css" href="./mycss.css" rel="stylesheet">
</head>
<body>
<div class="page-title">
<h1>Title</h1>
</div>
<div class="page-content">
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<p>Blah Blah Blah</P>
<div id="nextPage" class="next">
<a href="https://www.google.com">Next</a>
</div>
</div>
</body>
</html>
由这个 CSS 设置样式:
body {
height: 100%;
width: 960px;
min-height: 550px;
max-height: 1080px;
margin: 20px 60px 40px 20px;
padding-left: 10px;
}
.page-title h1 {
height: 55px;
font-family: "Play";
font-size: 38px;
font-weight: 700;
}
.page-content {
font-family: "Cantarell";
font-size: 16px;
font-weight: 400;
width: 650px;
text-align: justify;
}
.next {
font: 23px "Play";
position: relative;
margin-left: 605px;
margin-bottom: 25px;
}
有没有办法使用跨浏览器兼容在类CSS
的顶部和底部添加一些空白?此刻,无论我给它的属性多少,“Next”链接和最后一次之间的差距都没有改变,并且链接和页面底部之间的空间很小.<div>
next
margin-bottom
Blah Blah Blah