![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
malan_wpf
我是做网页的,我的未来不是梦。哈哈
展开
-
使图片水平垂直于层的方法
body{ margin:0 ; padding:0; background-color:#333333; color:#FEFEFE; font-size:12px; line-height:150%} .ver-center { background: #292928; text-align: center; display: table-cell; vertical-align: m转载 2009-04-20 09:58:00 · 300 阅读 · 0 评论 -
IE1px, bug 解决思路
针对下面这个简单的例子,了解一下以后解决IE 1px bug的方法。就是用相对定位。原来的效果: float:left; display:inline; margin:0px 2px; border:0px; width:50px; height:16px; line-height:16px; background-color:#000000原创 2009-04-21 13:55:00 · 672 阅读 · 0 评论 -
png图片和背景变透明的方法兼容各个浏览器
针对IE6不支持PNG图片和背景透明的问题的解决方法:1、在头部加入2、iecss中代码:img, div { behavior: url(iepng/iepngfix.htc) }3、iepng文件夹中包括一个blank.gif图片文件和一个iepngfix.htc文件这样不管页面中的pNG图片以背景出现还是以IMG出现,IE6都可以做到透明了!如果不行使用第一部原创 2009-04-13 09:17:00 · 698 阅读 · 0 评论 -
解决IE6、IE7、Firefox兼容最简单的CSS Hack
具体写法很容易:方法一: #someNode { position: fixed; #position: fixed; _position: fixed; } 方法二: .detailmore{width:110px;}*+html .detailmore{width:104px;} *html .detailmore{width:104px;} 第一排给Fire原创 2009-04-24 09:33:00 · 355 阅读 · 0 评论 -
input 属性为 number,maxlength不起作用如何解决?
效果ok,当 时maxlength失效,长度可以无限输入。解放方案:5)value=value.slice(0,5)" />很简单,搞定!原创 2016-03-03 14:28:25 · 63223 阅读 · 0 评论 -
CSS3属性:width:fit-content 水平居中
css code:.center ul{ width: -moz-fit-content; width: -webkit-fit-content; width: fit-content; margin: 0 auto; }.center li{ float: left;}html:原创 2016-03-18 10:57:06 · 2454 阅读 · 0 评论 -
利用时间戳解决频繁更新图片造成的图片缓存问题
js code:$(document).ready(function(){var timestamp = Date.parse(new Date())var img_src = 'v.jpg?'+timestamp;$("#img_src").html('')})html:长按二维码 加入语音直播群原创 2016-03-14 14:42:51 · 2215 阅读 · 0 评论 -
dispaly:table布局
.content_b {display: table;width: 100%;margin:0;padding:0}.content_b li {display: table-cell;border: 1px solid #ccc;text-align: center;height: 100px;border-right: none;line-hei原创 2016-03-14 16:05:27 · 1445 阅读 · 0 评论 -
box-sizing:border-box设置并排带边框的容器
css code:div.box {box-sizing: border-box;/*两个并排的带边框的框*/width: 50%;border: 8px solid red;float: left;}html code: hello world 不管边框有多粗,都不会被挤下来。原创 2016-03-15 09:08:07 · 1734 阅读 · 0 评论