码迷,mamicode.com
首页 >  
搜索关键字:margin    ( 11204个结果
IE6/IE7/IE8/FF兼容问题汇总,以及解决方案
1.IE8下兼容问题,这个最好处理,转化成ie7兼容就可以。在头部加如下一段代码,然后只要在IE7下兼容了,IE8下面也就兼容了2.flaot浮动造成IE6下面双倍边距问题,这个最常见,也最好处理,!important解决,比如margin-left:10px !important;;margin-...
分类:其他好文   时间:2014-08-05 13:58:09    阅读次数:367
两种解决IE6不支持固定定位的方法
有两种让IE6支持position:fixed1.用CSS执行表达式*{margin:0;padding:0;}* html,* html body{ background-image:url(about:blank); background-attachment:fixed;}* html ......
分类:其他好文   时间:2014-08-05 13:46:49    阅读次数:260
DIV+CSS IE6/IE7/IE8/FF兼容问题汇总
1.IE8下兼容问题,这个最好处理,转化成ie7兼容就可以。在头部加如下一段代码,然后只要在IE7下兼容了,IE8下面也就兼容了2.flaot浮动造成IE6下面双倍边距问题,这个最常见,也最好处理,!important解决,比如margin-left:10px !important;;margin-...
分类:Web程序   时间:2014-08-05 13:36:39    阅读次数:388
页面都需要用到的总的css方法
/* CSS Document */*{margin:0;padding:0; }body{font-size:12px;font-family: Arial,SimSun,"宋体";color:#333; background:#960400;}h1,h2,h3,h4,h5,h6{ font-si...
分类:Web程序   时间:2014-08-04 20:50:27    阅读次数:226
元素居中css
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:Web程序   时间:2014-08-04 14:44:18    阅读次数:412
IE下设置body{overflow:hidden;}失效Bug
问题重现:There are no scrollbarson this page in sane browsershtml, body, p { margin: 0; padding: 0; } body { overflow: hidden; } p { width: 5000px; height...
分类:其他好文   时间:2014-08-04 14:12:07    阅读次数:217
javascript 跟随鼠标移动的提示框的一个小demo
下面提供一种跟随鼠标移动的提示框的思路,方便在以后工作中应用,主要是应用到鼠标移动产生的数值来进行移动提示框的定位...CSS代码.box{height:100px;width:100px;background:orange;position:relative;margin:40px;}.move{...
分类:移动开发   时间:2014-08-04 10:40:27    阅读次数:257
保存下我修改的主题 基于darkgreentrip
#main { width: 1200px; margin-left: auto; margin-right: auto; } #blogTitle { display: none; }
分类:其他好文   时间:2014-08-03 10:11:45    阅读次数:186
Html5 canvas 绘制彩票走势图
因需要 要实现一个类似彩票走势图的功能,初次学Html5 ,很多地方不明白,前段时间也发帖请教过这个问题,也是没给个明确说话,在网上搜了很多,也没有实现的例子,今天仔细研究了下,发现其实也不是很难,现将代码贴出来,共同学习! 先来一张效果图: 实现的代码: table { border: 0; margin: 0; bor...
分类:Web程序   时间:2014-08-01 19:53:22    阅读次数:706
CSS3 perspecitve属性
MM.div1{ position: relative; height: 150px; width: 150px; margin: 0px; padding:2px; border: 1px solid black; perspective:550; -webkit-perspective:550;...
分类:Web程序   时间:2014-08-01 18:32:02    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!