html5初学者的问题,为啥我的h1,p等标签没有在css中被调用?
<head><metacharset="UTF-8"><metacharset="GB2312"><title>HTML邀请函</title><linkhref="="c...
<head>
<meta charset="UTF-8">
<meta charset="GB2312">
<title> HTML 邀请函</title>
<link href="="css.css" rel="stylesheet" >
<style type="text/css">
h1 {
font-size:54px;
text-transform:uppercase;
margin-bottom:20px;
}
p {
font-size:21px;
margin-bottom:40px;
}
a {
font-size:18px;
color:#fff;
border:1px solid #fff;
border-radius:3px;
padding:10px 100px;
text-decoration:none;
}
</style>
</head>
<body>
<div id="container">
<div>
<h1> learn the HTML5</h1>
<p>发挥你的想象,探索web。</p>
<a href="invite.php">邀您参加</a>
</div>
<script src="enroll.js"></script>
<script type="text/javascript">
var enroll = document.getElementById("enroll");
enroll.onclick = function(e){
e.preventDefault();
enroll.innerHTML = "报名成功";
enroll.style.background = "27#cb8b";
enroll.style.borderColor = "#27cb8b";
}
</script>
</body>
</html>
这是代码,用IE游览器运行,字体没有变大,jsp的地方也没出现按钮,是哪里出了问题? 展开
<meta charset="UTF-8">
<meta charset="GB2312">
<title> HTML 邀请函</title>
<link href="="css.css" rel="stylesheet" >
<style type="text/css">
h1 {
font-size:54px;
text-transform:uppercase;
margin-bottom:20px;
}
p {
font-size:21px;
margin-bottom:40px;
}
a {
font-size:18px;
color:#fff;
border:1px solid #fff;
border-radius:3px;
padding:10px 100px;
text-decoration:none;
}
</style>
</head>
<body>
<div id="container">
<div>
<h1> learn the HTML5</h1>
<p>发挥你的想象,探索web。</p>
<a href="invite.php">邀您参加</a>
</div>
<script src="enroll.js"></script>
<script type="text/javascript">
var enroll = document.getElementById("enroll");
enroll.onclick = function(e){
e.preventDefault();
enroll.innerHTML = "报名成功";
enroll.style.background = "27#cb8b";
enroll.style.borderColor = "#27cb8b";
}
</script>
</body>
</html>
这是代码,用IE游览器运行,字体没有变大,jsp的地方也没出现按钮,是哪里出了问题? 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询