定义滚动条就是利用伪元素与伪类,那什么是伪元素和伪类呢? 伪类大家应该很熟悉:link,:focus,:hover,此外CSS3中又增加了许多伪类选择器,如:nth-child,:last-child,:nth-last-of-type()等。 CSS中的伪元素大家以前看过::first-line, ...
分类:
其他好文 时间:
2017-12-28 17:13:25
阅读次数:
195
testPrivate(); $this->testPublic(); echo $this->salary; echo $this->lunch; } // 这个被子类覆盖掉了,这也就解释了结果 public function testPublic() { echo "Bar::testPubli... ...
分类:
Web程序 时间:
2017-12-25 23:17:38
阅读次数:
269
# 作者 : liuxing # 日期 : 2017-12-25 # 格式化输出 name=input("name:") age=input("age:") job=input("job:") salary=input("salary:") msg=""" ------info of %s-----... ...
分类:
编程语言 时间:
2017-12-25 13:42:34
阅读次数:
114
1. 原题链接 https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ 2. 题目要求 给出一个链表,请删除倒数第n个结点并返回头节点 注意:给出的n总在合法范围内;只用一次遍历; 3. 解题思路 删除倒 ...
分类:
其他好文 时间:
2017-12-24 11:21:46
阅读次数:
140
例:查找当前薪水(to_date='9999-01-01')排名第二多的员工编号emp_no、薪水salary、last_name以及first_name,不准使用order byCREATE TABLE `employees` (`emp_no` int(11) NOT NULL,`birth_d ...
分类:
数据库 时间:
2017-12-22 15:56:29
阅读次数:
191
odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr:nth-child(odd) { odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr ...
分类:
Web程序 时间:
2017-12-16 17:14:36
阅读次数:
229
#author devilf product_list = [ ('iphone',5800), ('Mac Pro',9800), ('Bike',800), ('Watch',10000), ('Coffee',123) ] shop_list = [] salary = input('pls ... ...
分类:
编程语言 时间:
2017-12-15 20:48:26
阅读次数:
191
Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at w ...
分类:
其他好文 时间:
2017-12-14 13:20:54
阅读次数:
150
fabric title是开发,但是同时要干开发测试还有运维的活……为毛 task*3 不是 salary * 3 (o(╯□╰)o) 近期接手越来越多的东西,发布和运维的工作相当机械,加上频率还蛮高,导致时间浪费还是优点多。 修复bug什么的,测试,提交版本库(2分钟),ssh到测试环境pull部 ...
分类:
编程语言 时间:
2017-12-13 15:01:11
阅读次数:
212
第一次用到这个选择器还是为了解决下面了的问题: 手机的前端,我们使用了mint-ui,里面有一个日期选择控件,但是选择的时候没有提供年月的选择器,如: 而是提供了下面的方式: 为了达到上面的效果,使用了一个讨巧的方法,用CSS3的选择器:nth-child(n),直接让第3个(天数)元素隐藏掉。 参 ...
分类:
Web程序 时间:
2017-12-13 11:58:51
阅读次数:
193