复习的时候偶然间看到往年的web有着这道题,然后本爪子就给做了,很简单,适合期末速成的时候,不想写的时候看的一眼
创建A_1.html文档,设计如图1所示页面效果,设置文档标题为“文本与段落”。
提示:页面元素样式可采用html标签,也可采用CSS样式
图1 A_1.html页面效果图
代码如下:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>文本与段落</title>
<style>
body{
text-align: center;
}
.title{
font-size:25px;
line-height:15px;
}
.py{
display: block;
}
#writer{
color:red;
line-height: 50px;
}
#spacial{
font-style: italic;
}
.footer{
float: left;
}
</style>
</head>
<body>
<div class="title">唐诗欣赏</div>
<br><br>
<hr size="3px" color="red">
<div class = "p">
<span class="py">静夜思 <br></span>
<span id="writer">李白 <br></span>
<span class="py">窗前明月光,</span>
<span class="py">疑是地上霜。</span>
<span class="py" id="spacial">举头望明月,</span>
<span class="py">低头思故乡。</span>
</div>
<hr size="3px" color="green">
<footer class="footer">
<p>#C:版权所有,违者必究</p></footer>
</body>
<script>
</script>
</html>
还有两道我会马上发出来,希望对大家有帮助!!
本爪子不想web挂科!!!
分手的爪子很伤心!!!