码迷,mamicode.com
首页 >  
搜索关键字:margin    ( 11204个结果
TypeError: canvas is null
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
让DIV垂直居中的几种办法
1.使用CSS3 的伸缩盒布局 2.position:absolute 和 margin 联合使用 3.position:absolute 和 margin: auto联合使用
分类:其他好文   时间:2015-10-16 19:00:09    阅读次数:148
CSS的Float特性
1.float元素居中问题:使设置float属性的元素居中,为其添加一个父容器,设置margin:0 auto;即可。 float居中 col1列 col2列 col3列 图1.设置wrap的宽度后居中 图2.不设置...
分类:Web程序   时间:2015-10-16 11:34:09    阅读次数:340
Css不规则背景图片在导航里居中显示
在css导航的制作中,出现个问题,以前做的导航都是左右对称的,只要利用margin:0 auto;就可以实现居中。但这次的图片模板中导航的左边宽,右边窄,如果都当成背景来布局,一眼会感觉这个导航没有在中间。为了让其视觉上logo和导航菜单所在的白色区域居中,就要用相对定位和绝对定位了。left-si...
分类:Web程序   时间:2015-10-15 23:30:25    阅读次数:322
负margin居中
new document
分类:其他好文   时间:2015-10-15 22:15:55    阅读次数:222
标签球-Js插件
今天上学校的图书馆,看到了一个好玩的东西,特意百度了下,发现叫做“标签球”,效果图为:直接代码如下:#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水平居中
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转换
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
easyui表格适应bootstrap
.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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!