编写Admired主题的作者太有爱了,居然在代码里吐槽
在为我的jPress设计第一个主题,模仿我现在所使用WordPress上的Admired,搜刮了一下其中的CSS,当我看到导航栏圆角渐变的代码时,忍不住乐了,各位请看代码。
![cheeky cheeky]()
倒数第二行作者看到IE10(经过我测试IE9也可以渐变)还吃了一惊!说实话,IE这些年越来越低调,不过也越来越看着顺眼了。但是我也要吐槽一句,IE6对我的伤害实在太大了。。。
background: #0281d4; /* Will IE gradients ever be able to follow a radius? Who the Fuq knows! */ background: -moz-linear-gradient(top, #0281d4 0%, #026bb0 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0281d4), color-stop(100%,#026bb0)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #0281d4 0%,#026bb0 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #0281d4 0%,#026bb0 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, #0281d4 0%,#026bb0 100%); /* IE10+ <= I'll beleave it when i see it... */ background: linear-gradient(top, #0281d4 0%,#026bb0 100%); /* W3C */ border-radius: 7px;哈哈,作者在注释上居然吐槽,我学会了一个含蓄的表达"Fuq",您学会了吗?
倒数第二行作者看到IE10(经过我测试IE9也可以渐变)还吃了一惊!说实话,IE这些年越来越低调,不过也越来越看着顺眼了。但是我也要吐槽一句,IE6对我的伤害实在太大了。。。
浙公网安备 33010602011771号