继续接着昨天的整理 【倒影】:用的不是很多 -webkit-box-reflect:below 20px -webkit-linear-gradient(rgba(0,0,0,0,),rgba(0,0,0,1)); 方向 和倒影之间的距离 倒影方向above(向上) below(向下) left(向 ...
分类:
Web程序 时间:
2016-10-15 07:39:19
阅读次数:
158
点击查看原文 问题 如果我们想要一个元素拥有半透明的背景,我们有两个选择: 使用CSS和 opacity 做一张 24-bit PNG 背景图片 在CSS中使用opacity有两个问题,一是为了适应所有的浏览器,我们要对付opacity讨厌的语法;二是opacity不仅使目标元素的背 景变得半透明, ...
分类:
Web程序 时间:
2016-10-11 10:36:45
阅读次数:
152
页面链接。 注:navigator-hover默认为{background-color: rgba(0, 0, 0, 0.1); opacity: 0.7;}, <navigator/>的子节点背景色应为透明色 示例代码: ...
分类:
其他好文 时间:
2016-10-08 20:21:33
阅读次数:
137
ys_popup.css.ys-popup{
position:fixed;
top:0;
bottom:0;
left:0;
right:0;
display:none;
z-index:99999;
background-color:rgba(0,0,0,0.4);
}
.ys-popup.ys-popup-content{
position:absolute;
left:30px;
right:30px;
top:50%;
display:block;
background-color:#fff;
m..
分类:
其他好文 时间:
2016-09-27 11:57:37
阅读次数:
151
;(function($) { $.Loading = function(options) { //暴漏插件默认值 $.Loading.defaults = { speed: 200, //弹出层淡出速度 bgcolor: 'rgba(0,0,0,.7)', //遮罩层颜色,需要rgba格式,默认黑 ...
分类:
Web程序 时间:
2016-09-27 11:44:28
阅读次数:
185
<style> .path { width: 300px; height: 300px; padding: 20px; border-radius: 50%; background: rgba(79, 11, 152, 0.5);; margin: 50px auto; } .avatar { wi ...
分类:
其他好文 时间:
2016-09-21 10:15:29
阅读次数:
158
基于webkit的浏览器现在也可以自定义其样式: ::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); -webkit-b ...
分类:
Web程序 时间:
2016-09-16 18:18:50
阅读次数:
247
新建一个Category,命名为UIColor+Hex,表示UIColor支持十六进制Hex颜色设置。 UIColor+Hex.h文件, #import <UIKit/UIKit.h> #define RGBA_COLOR(R, G, B, A) [UIColor colorWithRed:((R) ...
分类:
移动开发 时间:
2016-09-13 16:32:12
阅读次数:
210
/***滚动条**/ ::-webkit-scrollbar { width: 8px; height: 6px} /* 滚动槽*/ ::-webkit-scrollbar-track { background:rgba(239,239,239,1)} /* 滚动条滑块*/ ::-webkit-sc ...
分类:
其他好文 时间:
2016-09-10 10:19:19
阅读次数:
158
我随便设了一下,不是被覆盖,而是按钮半透明,透了一些颜色过来。把按钮的透明度减少,或不透明this->setStyleSheet("background-color:rgba(255, 255,0, 100)");ui->pushButton->setStyleSheet("background-c ...
分类:
其他好文 时间:
2016-09-10 00:12:37
阅读次数:
190