随篇博客的思维导图,继续: 二,看下标签的使用,这里看几个小例子(效果图不再给出): 1,结构标签的使用,这里来看一个页面的布局:
/*
*{border:1px solid red;height:20px}
所有的HTML5结构标签本质上来说就是一个div标签,只不过有意义
*/
/*页面头部 header*/
heade...
分类:
Web程序 时间:
2014-10-27 19:31:02
阅读次数:
245
只需要设置img的background即可
css设置:
#detailModel .detailImg{
width: 100%;
border-radius: 5px;
border: 1px solid #c3c3c3;
background:url("../img/load2.gif") no-repeat cente...
分类:
其他好文 时间:
2014-10-27 17:48:15
阅读次数:
203
每天一个JavaScript实例-操作元素定位元素
div#a{
width:500px;
}
div{
border:1px solid #000;
padding:10px;
}
#cursor{
position:absolute;
background-color:#ff0;
width:20px;
height:20px;
left:50px;...
分类:
编程语言 时间:
2014-10-27 12:49:20
阅读次数:
209
#box{width:832px;height:832px;margin:0 auto;border:1px solid red;}
.col{width:50px;height:50px;border:1px solid #fff;float:left;background:url(xin.jpg) no-repeat;}
...
分类:
编程语言 时间:
2014-10-25 17:23:21
阅读次数:
192
在实现散列布局的时候,遇到一个问题,想用自适应布局,即左右两列分别为左右浮动,中间列自适应html代码如下 对应CSS代码为:#wrap{ width: 80%; border: 1px solid #dda; height: 98px; margin: 0 auto; } #le...
分类:
其他好文 时间:
2014-10-24 16:00:08
阅读次数:
194
.out{ border-top:40px #f0efeb solid;/*上边框宽度等于表格第一行行高*/ border-left:200px #e6faf9 solid;/*左边框宽度等于表格第一行第一格宽度*/ position:relative;/*让里面的两个子容器绝对定位*/ }....
分类:
其他好文 时间:
2014-10-23 17:34:24
阅读次数:
118
eq() 方法将匹配元素集缩减值指定 index 上的一个。
通过为 index 为 2 的 div 添加适当的类,将其变为蓝色:
div { width:60px; height:60px; margin:10px; float:left;
border:2px solid blue; }
.blue { background:blue; }
...
分类:
Web程序 时间:
2014-10-21 21:36:56
阅读次数:
241
body{margin:0;padding:0;}
div{width:100px;height:100px;background:red;position: absolute;left:0;}
span{width:0;height:600px;position:fixed;left:600px;top:0;border-left:1px solid red;...
分类:
Web程序 时间:
2014-10-21 17:45:09
阅读次数:
150
在学习Jquery选择器之前我们先简单的回想一下CSS选择器;以下为CSS常用选择器:选择器语法描述示例标签选择器E{CSS规则}以文档元素作为选择器1 tr{2 border: solid 1px red;3 width: 120px;4 }5 a{6 text-decoration:...
分类:
Web程序 时间:
2014-10-21 17:06:54
阅读次数:
205
题目链接
Problem A: The Monocycle
A monocycle is a cycle that runs on one wheel and the one we will be considering is a bit more special. It has a solid wheel...
分类:
其他好文 时间:
2014-10-20 23:20:06
阅读次数:
309