发表于: 2016-05-26 00:11:15
1 839
今天完成的事情:
进度还是有些慢,css部分刚看到css分类部分,不过通过html和css学的之知识
通过修改表格的height和width,和background-color,以及border-radius这些属性能够初步输出一个九宫格图片。
明天计划的事情:
看完css剩余部分和任务1的其余(希望盒子模型中的英文部分不太难懂)。
遇到的问题:
1.对于继承概念和应用不是很理解。
2.在css基础概念-css分类-创建无表格的首页里的程序没有理解,
div.left中设置了float:left;还可以理解,但是div.content(h2)部分不知道怎么为什么会和div.left并排显示
程序如下:
<html>
<head>
<style type="text/css">
div.container
{
width:100%;
margin:0px;
border:1px solid gray;
line-height:150%;
}
div.header,div.footer
{
padding:0.5em;
color:white;
background-color:gray;
clear:left;
}
h1.header
{
padding:0;
margin:0;
}
div.left
{
float:left;
width:160px;
margin:0;
padding:1em;
}
div.content
{
margin-left:190px;
border-left:1px solid gray;
padding:1em;
}
</style>
</head>
<body>
<div class="container">
<div class="header"><h1 class="header">W3School.com.cn</h1></div>
<div class="left"><p>"Never increase, beyond what is necessary, the number of entities required to explain anything." William of Ockham (1285-1349)</p></div>
<div class="content">
<h2>Free Web Building Tutorials</h2>
<p>At W3School.com.cn you will find all the Web-building tutorials you need,
from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.</p>
<p>W3School.com.cn - The Largest Web Developers Site On The Net!</p></div>
<div class="footer">Copyright 2008 by YingKe Investment.</div>
</div>
</body>
</html>
收获:
评论