利用css3这个属性(背景剪裁): 栗子: 1、 说明: -webkit-text-fill-color: transparent;(这里必须填充透明颜色,这样渐变的颜色才会填充到文字上面,去掉这个或者填充别的颜色,效果不明显) 检索或设置对象中的文字填充颜色, 若同时设置 <' text-fill ...
分类:
Web程序 时间:
2016-05-31 15:53:00
阅读次数:
737
把两边设置transparent透明就可以l,利用border的特性 ...
分类:
Web程序 时间:
2016-05-28 14:20:27
阅读次数:
205
1.实现梯形 利用边框我们可以得到梯形,首先我们给一个div添加边框,当给边框设置四个不同的颜色时,我们可以得到这样的样式,可以看到这里上边框是一个梯形,那么如果我们给其他边框设置颜色为透明(transparent),就可以得到一个梯形了。梯形的高便是边框的宽度设置。 <!doctype html> ...
分类:
其他好文 时间:
2016-05-27 21:43:11
阅读次数:
131
body{font-family:"Arial",serif;color:#333;background#ccc;margin:1em10%;}
h1{color:#333;background:transparent;}
a{color:#333;font-weight:bold;text-decoration:none;}
ul{padding:0;}
li{float:left;padding:1em;list-style:none;border-right:solid1px#ccc;}
#p_w_pi..
分类:
其他好文 时间:
2016-05-26 22:18:08
阅读次数:
262
对透明代理,需要使用几个功能,首先IP_TRANSPARENT,内核2.6.28就已经支持,centos6.3及以上是肯定支持的。它的作用是,如果某个ip在本机不存在,监听0.0.0.0一样可以收到数据,而发送的时候,可以bind任意一个不存在的ip(当然这个bind你使用netstat是看不见的),这样你就可..
分类:
其他好文 时间:
2016-05-20 17:38:56
阅读次数:
643
一个神奇的bug,后来查看redis的log,提示是内存的问题 echo never > /sys/kernel/mm/transparent_hugepage/enabled 并把这句话加到/etc/rc.loacl里,hugepage大分页是为大内存设计的,具体可以参见这篇文章。 于是只好卸载了 ...
分类:
其他好文 时间:
2016-05-19 10:26:38
阅读次数:
286
ulimit-nvi/etc/security/limits.conf*softnofile65535*hardnofile65535ulimit-uvi/etc/security/limits.d/90-nproc.conf*softnproc65535*hardnproc65535rootsoftnproc65535roothardnproc65535disableTransparentHugePageecho"echonever>/sys/kernel/mm/redhat_transparent_..
分类:
其他好文 时间:
2016-05-14 17:08:47
阅读次数:
241
设置透明效果 大概有三种. 1、用android系统的透明效果: android:background="@android:color/transparent" 例如 设置按钮 <Button android:background="@android:color/transparent" andro ...
分类:
其他好文 时间:
2016-05-13 07:26:52
阅读次数:
131
1、图形组合
globalCompositeOperation = type 属性" class="reference-link " style="padding:0px; margin:0px; color:rgb(65,131,196); background-color:transparent">globalCompositeOperation
= type 属性
**Can...
分类:
其他好文 时间:
2016-05-12 16:42:14
阅读次数:
227
1.添加样式
@null
true
false
true
@color/transparent
true
@android:style/Animation.InputMethod
2.添加需要的color
#FFEAEEF2
#17D7B1...
分类:
其他好文 时间:
2016-05-12 12:55:36
阅读次数:
168