border: none;padding: 0.6em 1.2em;background: #c0392b;color: #fff;font-family: 'Lato';font-size: 15px;letter-spacing: 1px;text-transform: uppercase;cu...
分类:
其他好文 时间:
2015-07-24 12:36:55
阅读次数:
135
js
返回顶部
body{margin:0; padding:0}
#to_top{width:30px; height:40px; padding:20px; font:14px/20px arial; text-align:center; background:#06c; position:absolute; cursor:pointer; color:#fff}
window...
分类:
Web程序 时间:
2015-07-18 15:36:05
阅读次数:
168
CSS学习时间不长,position的问题一直绕不清。今天系统学习,并整理如下:html{ font-size: 100%;height: 100%; }body { font-family: 'Lato', Calibri, Arial, sans-serif; color: #fff; back...
分类:
Web程序 时间:
2015-07-17 18:17:16
阅读次数:
179
box-flex:也就是让子容器针对父容器的宽高属性按照一定的规则来划分
Eg:
html代码:
01
02
03
CSS样式:
body,div { background:#fff; margin:0; padding:0;}
.wrap { width:600px; height:200px; color:#fff; margin:20px 0 0 20px; te...
分类:
Web程序 时间:
2015-07-16 11:46:57
阅读次数:
157
代码如下:.stitched { padding: 20px; margin: 10px; background: #ff0030; color: #fff; font-size: 21px; font-weight: bold; line-height: 1.3em; ...
分类:
Web程序 时间:
2015-07-14 19:46:06
阅读次数:
129
有时候我们在淘宝网或者京东商城上浏览要购买的商品的时候当把鼠标移动到图图片上的时候会发现图片放大,然后鼠标移动,图片也会跟着移动,接下来我就使用jquery来实现这种效果:
这是图片目录:
图片提示
body{
margin:0;
padding:40px;
background:#fff;
font:80% Arial, Helvetica, sans-se...
分类:
其他好文 时间:
2015-07-14 13:46:10
阅读次数:
209
input { display: block; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555; background-color: #fff; background-im....
分类:
其他好文 时间:
2015-07-14 13:13:07
阅读次数:
108
//css.onpage {position:fixed;position:absolute; left:0; top:0; width:100%; height:100%; background:#fff; z-index:10000; -webkit-transform: translate3d...
分类:
移动开发 时间:
2015-07-09 19:35:42
阅读次数:
240
相关的js代码:
$('#control-part-1').click(function(){
$(this).css('backgroundColor','#fff');
$('#part-1').css('display','block');
$(this).sibli...
分类:
其他好文 时间:
2015-07-09 11:17:28
阅读次数:
97
IE6下无法设置滚动条颜色怎么办:一般设置滚动条样式的时候会使用如下CSS代码:body { scrollbar-face-color:#f6f6f6; scrollbar-highlight-color:#fff; scrollbar-shadow-color:#eeeee...
分类:
其他好文 时间:
2015-07-08 17:59:59
阅读次数:
131