string? 字符串 boolean? 布尔数学体系,1,0 node? 节点,结 log? ? 日志,记录 console? 控制台 alert? ? 警报 document? 文档 write? ? ?写 read? ? ? 读 object? ? 物体,目标,对象 number? ?数字 t ...
分类:
Web程序 时间:
2016-07-14 02:12:56
阅读次数:
209
一、颜色属性demo.html<!doctypehtml>
<html>
<head>
<title>CSS的颜色属性的四种方式</title>
<metacharset="utf-8">
<styletype="text/css">
body{
color:red
}
.c1{
color:#ff6600
}
.c2{
color:rgb(0,0,255)/*红(R)、绿(G)、蓝..
分类:
Web程序 时间:
2016-07-13 12:14:00
阅读次数:
164
1、 消除inline-block元素间的换行间隙问题: {font-size:0;} 兼容IE6/7浏览器的方法:letter-spacing属性。 2、让两个inline-block的div顶部对齐: 两个元素都要加上vertical-align:top; 3、vertical-align的百分 ...
分类:
Web程序 时间:
2016-07-11 23:54:49
阅读次数:
319
我们知道网页中使用中文字体最好用其对应的英文名称,这样可以避免出现编码问题导致样式中的中文名称出现乱码,从而不识别。下面是网页中常用的中文字体所对应的英文名称。留着,不用翻资料了 PS:css字体降级写法:(越靠前权重越大) ...
分类:
Web程序 时间:
2016-06-19 19:49:26
阅读次数:
150
1. overflow:hidden和zoom:1 verflow:hidden;的作用 1. 隐藏溢出 ;2.消除浮动 zoom:1的作用兼容IE6、IE7、IE8浏览器,经常会遇到一些问题,可以使用zoom:1来解决,有如下作用:触发IE浏览器的haslayout解决ie下的浮动,margin重 ...
分类:
Web程序 时间:
2016-06-08 13:52:45
阅读次数:
242
一、使用margin属性进行水平对齐*{
margin:0px;
}
.div{
width:70%;
height:1000px;
background-color:red;
margin-left:auto;
margin-right:auto;
}margin:值1值2值1代表上下值2代表左右*{
margin:0px;
}
.div{
width:70%;
height:1000px;
background-color:red;
margin:100px..
分类:
Web程序 时间:
2016-05-14 01:15:30
阅读次数:
164
一、垂直导航栏ul{
list-style-type:none;
margin:0px;
padding:0px;
}
a:link,a:visited{
text-decoration:none;
display:block;
background-color:aqua;
color:black;
width:50px;
text-align:center;
}
a:active,a:hover{
background-color:crimson;
}<!DOCTYPEhtml>..
分类:
Web程序 时间:
2016-05-14 01:14:45
阅读次数:
178
一、尺寸操作height设置元素高度line-height设置行高.p1{
width:400px;
line-height:normal;
}
.p2{
width:400px;
line-height:200%;
}
.p3{
width:400px;
line-height:50%;
}<!DOCTYPEhtml>
<htmllang="en">
<head>
<metacharset="UTF-8">
<titl..
分类:
Web程序 时间:
2016-05-14 01:14:17
阅读次数:
169
body{
background-color:#0078b3;
}
.p_w_picpath{
border:1pxsoliddarkgray;
width:auto;
height:auto;
float:left;
text-align:center;
margin:5px;
}
img{
margin:5px;
opacity:1;
}
.text{
font-size:12px;
margin-bottom:5px;
}
a:hover{
background-color:aqua;
}<..
分类:
Web程序 时间:
2016-05-14 01:12:34
阅读次数:
144