1、错误描述
无标题文档
body{
background-color:#dddddd;
}
#canvas{
margin:20px;
padding:20px;
background-color:#FFFFFF;
border:thin inset #AAAAAA;
}
var canvas = document.g...
分类:
其他好文 时间:
2015-10-17 23:47:57
阅读次数:
326
1.使用CSS3 的伸缩盒布局 2.position:absolute 和 margin 联合使用 3.position:absolute 和 margin: auto联合使用
分类:
其他好文 时间:
2015-10-16 19:00:09
阅读次数:
148
1.float元素居中问题:使设置float属性的元素居中,为其添加一个父容器,设置margin:0 auto;即可。 float居中 col1列 col2列 col3列 图1.设置wrap的宽度后居中 图2.不设置...
分类:
Web程序 时间:
2015-10-16 11:34:09
阅读次数:
340
在css导航的制作中,出现个问题,以前做的导航都是左右对称的,只要利用margin:0 auto;就可以实现居中。但这次的图片模板中导航的左边宽,右边窄,如果都当成背景来布局,一眼会感觉这个导航没有在中间。为了让其视觉上logo和导航菜单所在的白色区域居中,就要用相对定位和绝对定位了。left-si...
分类:
Web程序 时间:
2015-10-15 23:30:25
阅读次数:
322
今天上学校的图书馆,看到了一个好玩的东西,特意百度了下,发现叫做“标签球”,效果图为:直接代码如下:#div1 {position:relative; width:350px; height:350px; border:1px solid #000; margin: 20px auto 0; }#d...
分类:
Web程序 时间:
2015-10-15 21:57:08
阅读次数:
350
.circle { width: 80px; height: 80px; position: relative; border-radius: 50%; margin: 0 auto; ...
分类:
其他好文 时间:
2015-10-15 18:08:56
阅读次数:
183
DIV水平居中实例:<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8"/>
<title>DIV水平居中</title>
<style>
.parent{width:980px;height:300px;margin:0auto;text-align:center;background-color:#999;}
.children{display:inlin..
分类:
其他好文 时间:
2015-10-15 16:32:51
阅读次数:
189
CSS3-2D转换实例<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8"/>
<title>2D转换</title>
<style>
div{margin:30px;
width:200px;
height:100px;
background-color:yellow;
/*Rotatediv*/
transform:rotate(9deg);
-ms-transfo..
分类:
Web程序 时间:
2015-10-15 16:26:02
阅读次数:
155
.panel1 { overflow: hidden; text-align: left; margin: 0; border: 0; -moz-border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; border-radius:...
分类:
其他好文 时间:
2015-10-15 15:41:27
阅读次数:
410