- 使用phpQuery库进行网页数据爬虫案例
小白学大数据
爬虫爬虫开发语言php
前言在Web开发和数据分析中,经常需要从网页中提取数据并进行处理。PHP一种流行的服务器端脚本语言,有许多库和工具使用。phpQuery是其中一个强大的工具,它可以让我们像使用jQuery一样在PHP中处理和提取网页数据。本文将介绍phpQuery库的基本用法,并通过一个实际案例分析演示如何在PHP中使用phpQuery进行网页数据处理和提取。PHP爬虫技术优势在网络爬虫开发中,PHP作为一种服务
- php数据采集源码,一个基于phpQuery的php通用采集类分享
Xros Liang
php数据采集源码
一、采集类源码/***通用列表采集类*版本V1.3*作者:JAE*/require_once'../phpQuery/phpQuery/phpQuery.php';classQueryList{private$pageURL;private$regArr=array();public$jsonArr=array();private$regRange;private$html;/**********
- 【SQL】简单博客开发代码
Z3r4y
sql数据库php安全笔记CTFWEB
前几天做到一些CMS的题,涉及一些sql的代码审计,于是尝试着自己开发一个连接数据库的博客,加深一遍理解简单实现了登录,验证,登出,目录,增删改查等功能下面贴代码conn.phpconnect_error){die("数据库连接失败".$conn->connect_error);}check.phpindex.html博客系统登陆博客系统管理员登陆账号密码login.phpquery($sql);
- 图书管理系统(后端)--添加图书信息
一路向后
1.插入函数文件dbop.phpquery($query);if($result){echo"ok";$conn->commit();}else{echo"error";$conn->rollback();}}?>2.api封装5.php文件{cnum};$row['isbn']=$recv->{isbn};$row['date']=$recv->{date};$row['status']=$re
- php 7.1 query,QueryPHP V1-beta.1 部分文档代码解耦,版本 PHP 7.3.2
weixin_39770165
php7.1query
经过1个月的开发,QueryPHPv1.0.0-beta.1版本可以发布了,这也是beta3个版本的开始部分。这个版本的主要是代码解耦和性能提升,文档开发。关于QueryPHPQueryPHP是一款现代化的高性能PHP7常驻框架,以工程师用户体验为历史使命,让每一个PHP应用都有一个好框架。百分之百单元测试覆盖直面Bug一剑封喉,基于Zephir实现框架常驻,依托Swoole生态实现业务常驻,此刻
- php 7.1 query,QueryPHP V1-beta.1 部分文档代码解耦,版本PHP 7.3.2
梧桐树下读书人
php7.1query
经过1个月的开发,QueryPHPv1.0.0-beta.1版本可以发布了,这也是beta3个版本的开始部分。这个版本的主要是代码解耦和性能提升,文档开发。关于QueryPHPQueryPHP是一款现代化的高性能PHP7常驻框架,以工程师用户体验为历史使命,让每一个PHP应用都有一个好框架。百分之百单元测试覆盖直面Bug一剑封喉,基于Zephir实现框架常驻,依托Swoole生态实现业务常驻,此刻
- VtigerCRM重置管理员密码
礼貌先生
Vtiger-CRMVtiger重置密码
登录Vtiger密码出错,使用邮件重置密码,邮件服务器还没有配置怎么办?Vtiger密码出错,忘记Vtiger密码,重置Vtiger管理员密码复制一下代码,并在网站根目录创建password.php文件,粘贴代码。运行或者下载文件password.phpquery($sql);if($adb->num_rows($result)>0){while($row=$adb->fetchByAssoc($
- 图书管理系统(后端)--查询图书信息
一路向后
1.查询函数文件dbop.phpquery($query);$i=0;if($result->num_rows>0){while($row=$result->fetch_assoc()){$col[$i]=$row;$i++;}}return$col;}?>2.api封装6.php文件query("setnamesutf8");$isbn=$recv->{isbn};$res=qry_admin_
- 图书管理系统(后端)--插入读者信息
一路向后
1.插入函数文件dbop.phpquery($query);if($result){echo"ok";$conn->commit();}else{echo"error";$conn->rollback();}}?>2.api封装1.php文件{unum};$row['name']=$recv->{name};$row['pass']=$recv->{pass};$row['conn']=$recv
- ctfshow web入门代码审计 web301-305
mushangqiujin
ctfshow通关前端web3php网络安全
1.web301共有这几个文件#checklogin.phpquery($sql);$row=$result->fetch_array(MYSQLI_BOTH);if($result->num_rowsfree();$mysqli->close();header("location:index.php");return;}$_SESSION['error']="1";header("locatio
- 爬虫抓取电商产品信息
电子伏特
网站功能需要,要求抓取各大电商产品信息,尤其是产品价格信息curl+phpQuery抓取静态网页中信息最开始认为网页都是静态的,所以用curl访问网站,再用phpQuery抓取结果中的标签,便可以获得指定商品的价格信息。但是结果发现无法抓取出价格信息,只是把标签抓取出来而已,而标签内容是空的。原因:目前几乎所有网站均为动态网站,所谓动态网站就是利用AJAX或javascript动态获得展示内容,再
- 图书管理系统(后端)--查询读者信息
一路向后
1.查询函数文件dbop.phpquery($query);$i=0;if($result->num_rows>0){while($row=$result->fetch_assoc()){$col[$i]=$row;$i++;}}return$col;}?>2.api封装2.php文件query("setnamesutf8");$res=qry_admin_niki_read_info($conn
- 图书管理系统(后端)--更新读者信息
一路向后
1.更新函数文件dbop.phpquery($query);if($result){echo"ok";$conn->commit();}else{echo"error";$conn->rollback();}}?>2.api封装3.php文件{unum};$row['name']=$recv->{name};$row['pass']=$recv->{pass};$row['conn']=$recv
- 站点接入相声
流星蝴蝶没有剑
站点博客PHP网站phpjquery
相声来源:喜马拉雅https://www.ximalaya.com/站点播放相声打完游戏,写个接口放松放松/xk个人站点接入相声技术:phpphpQueryajaxXHR分析步骤找到相声列表:https://www.ximalaya.com/xiangsheng/xiangsheng/先确定一下页面的列表是静态代码还是JS动态加载源码页面有列表可以知道直接使用PHPQuery获取标签即可。找到其中
- php tp5 爬取淘宝/天猫店铺的信息
_小辉o
phpthinkphp5
淘宝店铺的信息的爬取直接上代码//获取到传过来的链接$link=input('link');$content=$this->getRquest($link);//进行转义$content=mb_convert_encoding($content,'utf-8','GB2312');//引入PHPquery工具--存放路径/extend目录下\think\Loader::import('phpQue
- php tp5 爬取淘宝/天猫店铺的信息
程序猿_小辉o
phpthinkphp5
淘宝店铺的信息的爬取直接上代码//获取到传过来的链接$link=input('link');$content=$this->getRquest($link);//进行转义$content=mb_convert_encoding($content,'utf-8','GB2312');//引入PHPquery工具--存放路径/extend目录下\think\Loader::import('phpQue
- php+mysql+jquery省市区三级联动
ShadowCK
phpmysqljquery
php代码conn.phpconnect_error){die("Connectiontodatabasefailed:".$conn->connect_error);}$conn->query("setnamesutf8");?>index.phpquery($sql);while($row=$query->fetch_assoc()){$province[]=$row;}?>$(documen
- php+mysql+jquery省市区三级联动
ShadowCK
phpmysqljquery
php代码conn.phpconnect_error){die("Connectiontodatabasefailed:".$conn->connect_error);}$conn->query("setnamesutf8");?>index.phpquery($sql);while($row=$query->fetch_assoc()){$province[]=$row;}?>$(documen
- QueryPHP V1-beta.1 部分文档代码解耦,版本PHP 7.3.2
小牛哥Dyhb
经过1个月的开发,QueryPHPv1.0.0-beta.1版本可以发布了,这也是beta3个版本的开始部分。这个版本的主要是代码解耦和性能提升,文档开发。关于QueryPHPQueryPHP是一款现代化的高性能PHP7常驻框架,以工程师用户体验为历史使命,让每一个PHP应用都有一个好框架。百分之百单元测试覆盖直面Bug一剑封喉,基于Zephir实现框架常驻,依托Swoole生态实现业务常驻,此刻
- 创建PHP测试页面,连接并查询MariaDB数据库
尘埃落定2000
LNMP
创建PHP测试页面,连接并查询MariaDB数据库。#cat/usr/local/nginx/html/test2.phpquery($sql);while($row=$result->fetch_array()){printf("Host:%s",$row[0]);printf("");printf("Name:%s",$row[1]);printf("");}?>cat/etc/phpinfo
- phpquery 学习笔记
weixin_30587927
phpQuery是一个基于PHP的服务端开源项目,它可以让PHP开发人员轻松处理DOM文档内容,比如获取某新闻网站的头条信息。更有意思的是,它采用了jQuery的思想,你可以像使用jQuery一样处理页面内容,获取你想要的页面信息。Query的选择器之强大是有目共睹的,phpQuery让php也拥有了这样的能力,它就相当于服务端的jQuery。存在的意义我们有时需要抓取一个网页的内容,但只需要特定
- phpquery中文手册
lxw1844912514
【简介】phpQuery是一个基于PHP的服务端开源项目,它可以让PHP开发人员轻松处理DOM文档内容。更有意思的是,它采用了jQuery的思想,使得可以像使用jQuery一样处理页面内容,获取想要的页面信息。【步骤】1.引入phpquery类库下载连接点击下载include'phpQuery/phpQuery.php';12加载需要获取内容的网页连接或则文档加载文档主要通过phpQuery::n
- php封装的page分页类完整实例
ChouCat
phppage
亲测有效,见下图=========>1.测试实例test.phpquery('setnamesutf8');$sql="SELECT*fromoperator_listwhere1=1";$res_gg=$pdo->query("SELECTcount(*)asctnfromoperator_listwhere1=1;");$result=$res_gg->fetch();$total=$resu
- 使用火车头采集器笔记
爱代码也爱生活
php
官方手册:http://faq.locoy.com/q-741.html项目需要,需要采集旅游攻略数据,这里以采集新闻简单记录下,原理一样,火车头采集器确实很牛逼注意事项采集工具还有phpQuery、snoopy,snoopy是先把结果获取,然后循环正则匹配网址采集规则中:(.*)只表示目标之外的字符,用[参数代替]如:"link":"[参数]"(*)href="[参数]"提前规则和拼接地址参数上
- QueryList 4.0 简洁、优雅、可扩展的PHP采集工具(爬虫)
Jaeger
querylistphpphpquery采集网页爬虫
QueryList简介QueryList是一套简洁、优雅、可扩展的PHP采集工具(爬虫),基于phpQuery。特性拥有与jQuery完全相同的CSS3DOM选择器拥有与jQuery完全相同的DOM操作API拥有通用的列表采集方案拥有强大的HTTP请求套件,轻松实现如:模拟登陆、伪造浏览器、HTTP代理等意复杂的网络请求拥有乱码解决方案拥有强大的内容过滤功能,可使用jQuey选择器来过滤内容拥有高
- QueryPHP v1.0.0-rc.6 技术债务和功能全面完结,即将正式版
QueryPHP
php框架swoolephp
QueryPHPv1.0.0-rc.主要是清理掉在Github开发过程中整理的技术债务和一些简单需求,例外就是重构掉一些怪异的设计,简单化和用户体验。QueryPHP1.0.0正式版在这个版本之后发布,QueryPHP最早于2016年8月在DoYouHaoBaby框架上进行重,项目终于在快接近4年之际发布V1.0.0-GA版本。关于QueryPHPQueryPHP是一款现代化的高性能PHP渐进式协
- QueryPHP v1.0.0-rc.6 技术债务和功能全面完结,即将正式版
QueryPHP
php框架swoolephp
QueryPHPv1.0.0-rc.主要是清理掉在Github开发过程中整理的技术债务和一些简单需求,例外就是重构掉一些怪异的设计,简单化和用户体验。QueryPHP1.0.0正式版在这个版本之后发布,QueryPHP最早于2016年8月在DoYouHaoBaby框架上进行重,项目终于在快接近4年之际发布V1.0.0-GA版本。关于QueryPHPQueryPHP是一款现代化的高性能PHP渐进式协
- QueryPHP v1.0.0-rc.6 技术债务和功能全面完结,即将正式版
QueryPHP
php框架swoolephp
QueryPHPv1.0.0-rc.主要是清理掉在Github开发过程中整理的技术债务和一些简单需求,例外就是重构掉一些怪异的设计,简单化和用户体验。QueryPHP1.0.0正式版在这个版本之后发布,QueryPHP最早于2016年8月在DoYouHaoBaby框架上进行重,项目终于在快接近4年之际发布V1.0.0-GA版本。关于QueryPHPQueryPHP是一款现代化的高性能PHP渐进式协
- [CISCN2019 华北赛区 Day1 Web5]CyberPunk
sm1rk
CTF
查看源码可能有用伪协议读取源码利用此方法依次读取到delete.php,confirm.php,change.php,search.php,不一一展示了,直接看存在漏洞的confirm.php和change.php//confirm.phpquery($sql);}if($fetch->num_rows>0){$msg=$user_name."å·²æ交订å•";}else{$sql
- 使用phpquerylist爬取csdn文章
码农Robin
php
composer安装phpquerylist4在项目目录下创建composer.json文件:{"require":{"jaeger/querylist":"^4.0"}}命令行运行命令:composerinstall就可以得到vendor文件夹,文件结构如下图:2、创建方法,采集、存储数据conn=mysqli_connect($this->host,$this->username,$this-
- 如何用ruby来写hadoop的mapreduce并生成jar包
wudixiaotie
mapreduce
ruby来写hadoop的mapreduce,我用的方法是rubydoop。怎么配置环境呢:
1.安装rvm:
不说了 网上有
2.安装ruby:
由于我以前是做ruby的,所以习惯性的先安装了ruby,起码调试起来比jruby快多了。
3.安装jruby:
rvm install jruby然后等待安
- java编程思想 -- 访问控制权限
百合不是茶
java访问控制权限单例模式
访问权限是java中一个比较中要的知识点,它规定者什么方法可以访问,什么不可以访问
一:包访问权限;
自定义包:
package com.wj.control;
//包
public class Demo {
//定义一个无参的方法
public void DemoPackage(){
System.out.println("调用
- [生物与医学]请审慎食用小龙虾
comsci
生物
现在的餐馆里面出售的小龙虾,有一些是在野外捕捉的,这些小龙虾身体里面可能带有某些病毒和细菌,人食用以后可能会导致一些疾病,严重的甚至会死亡.....
所以,参加聚餐的时候,最好不要点小龙虾...就吃养殖的猪肉,牛肉,羊肉和鱼,等动物蛋白质
- org.apache.jasper.JasperException: Unable to compile class for JSP:
商人shang
maven2.2jdk1.8
环境: jdk1.8 maven tomcat7-maven-plugin 2.0
原因: tomcat7-maven-plugin 2.0 不知吃 jdk 1.8,换成 tomcat7-maven-plugin 2.2就行,即
<plugin>
- 你的垃圾你处理掉了吗?GC
oloz
GC
前序:本人菜鸟,此文研究学习来自网络,各位牛牛多指教
1.垃圾收集算法的核心思想
Java语言建立了垃圾收集机制,用以跟踪正在使用的对象和发现并回收不再使用(引用)的对象。该机制可以有效防范动态内存分配中可能发生的两个危险:因内存垃圾过多而引发的内存耗尽,以及不恰当的内存释放所造成的内存非法引用。
垃圾收集算法的核心思想是:对虚拟机可用内存空间,即堆空间中的对象进行识别
- shiro 和 SESSSION
杨白白
shiro
shiro 在web项目里默认使用的是web容器提供的session,也就是说shiro使用的session是web容器产生的,并不是自己产生的,在用于非web环境时可用其他来源代替。在web工程启动的时候它就和容器绑定在了一起,这是通过web.xml里面的shiroFilter实现的。通过session.getSession()方法会在浏览器cokkice产生JESSIONID,当关闭浏览器,此
- 移动互联网终端 淘宝客如何实现盈利
小桔子
移動客戶端淘客淘寶App
2012年淘宝联盟平台为站长和淘宝客带来的分成收入突破30亿元,同比增长100%。而来自移动端的分成达1亿元,其中美丽说、蘑菇街、果库、口袋购物等App运营商分成近5000万元。 可以看出,虽然目前阶段PC端对于淘客而言仍旧是盈利的大头,但移动端已经呈现出爆发之势。而且这个势头将随着智能终端(手机,平板)的加速普及而更加迅猛
- wordpress小工具制作
aichenglong
wordpress小工具
wordpress 使用侧边栏的小工具,很方便调整页面结构
小工具的制作过程
1 在自己的主题文件中新建一个文件夹(如widget),在文件夹中创建一个php(AWP_posts-category.php)
小工具是一个类,想侧边栏一样,还得使用代码注册,他才可以再后台使用,基本的代码一层不变
<?php
class AWP_Post_Category extends WP_Wi
- JS微信分享
AILIKES
js
// 所有功能必须包含在 WeixinApi.ready 中进行
WeixinApi.ready(function(Api) {
// 微信分享的数据
var wxData = {
&nb
- 封装探讨
百合不是茶
JAVA面向对象 封装
//封装 属性 方法 将某些东西包装在一起,通过创建对象或使用静态的方法来调用,称为封装;封装其实就是有选择性地公开或隐藏某些信息,它解决了数据的安全性问题,增加代码的可读性和可维护性
在 Aname类中申明三个属性,将其封装在一个类中:通过对象来调用
例如 1:
//属性 将其设为私有
姓名 name 可以公开
- jquery radio/checkbox change事件不能触发的问题
bijian1013
JavaScriptjquery
我想让radio来控制当前我选择的是机动车还是特种车,如下所示:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"><
- AngularJS中安全性措施
bijian1013
JavaScriptAngularJS安全性XSRFJSON漏洞
在使用web应用中,安全性是应该首要考虑的一个问题。AngularJS提供了一些辅助机制,用来防护来自两个常见攻击方向的网络攻击。
一.JSON漏洞
当使用一个GET请求获取JSON数组信息的时候(尤其是当这一信息非常敏感,
- [Maven学习笔记九]Maven发布web项目
bit1129
maven
基于Maven的web项目的标准项目结构
user-project
user-core
user-service
user-web
src
- 【Hive七】Hive用户自定义聚合函数(UDAF)
bit1129
hive
用户自定义聚合函数,用户提供的多个入参通过聚合计算(求和、求最大值、求最小值)得到一个聚合计算结果的函数。
问题:UDF也可以提供输入多个参数然后输出一个结果的运算,比如加法运算add(3,5),add这个UDF需要实现UDF的evaluate方法,那么UDF和UDAF的实质分别究竟是什么?
Double evaluate(Double a, Double b)
- 通过 nginx-lua 给 Nginx 增加 OAuth 支持
ronin47
前言:我们使用Nginx的Lua中间件建立了OAuth2认证和授权层。如果你也有此打算,阅读下面的文档,实现自动化并获得收益。SeatGeek 在过去几年中取得了发展,我们已经积累了不少针对各种任务的不同管理接口。我们通常为新的展示需求创建新模块,比如我们自己的博客、图表等。我们还定期开发内部工具来处理诸如部署、可视化操作及事件处理等事务。在处理这些事务中,我们使用了几个不同的接口来认证:
&n
- 利用tomcat-redis-session-manager做session同步时自定义类对象属性保存不上的解决方法
bsr1983
session
在利用tomcat-redis-session-manager做session同步时,遇到了在session保存一个自定义对象时,修改该对象中的某个属性,session未进行序列化,属性没有被存储到redis中。 在 tomcat-redis-session-manager的github上有如下说明: Session Change Tracking
As noted in the &qu
- 《代码大全》表驱动法-Table Driven Approach-1
bylijinnan
java算法
关于Table Driven Approach的一篇非常好的文章:
http://www.codeproject.com/Articles/42732/Table-driven-Approach
package com.ljn.base;
import java.util.Random;
public class TableDriven {
public
- Sybase封锁原理
chicony
Sybase
昨天在操作Sybase IQ12.7时意外操作造成了数据库表锁定,不能删除被锁定表数据也不能往其中写入数据。由于着急往该表抽入数据,因此立马着手解决该表的解锁问题。 无奈此前没有接触过Sybase IQ12.7这套数据库产品,加之当时已属于下班时间无法求助于支持人员支持,因此只有借助搜索引擎强大的
- java异常处理机制
CrazyMizzz
java
java异常关键字有以下几个,分别为 try catch final throw throws
他们的定义分别为
try: Opening exception-handling statement.
catch: Captures the exception.
finally: Runs its code before terminating
- hive 数据插入DML语法汇总
daizj
hiveDML数据插入
Hive的数据插入DML语法汇总1、Loading files into tables语法:1) LOAD DATA [LOCAL] INPATH 'filepath' [OVERWRITE] INTO TABLE tablename [PARTITION (partcol1=val1, partcol2=val2 ...)]解释:1)、上面命令执行环境为hive客户端环境下: hive>l
- 工厂设计模式
dcj3sjt126com
设计模式
使用设计模式是促进最佳实践和良好设计的好办法。设计模式可以提供针对常见的编程问题的灵活的解决方案。 工厂模式
工厂模式(Factory)允许你在代码执行时实例化对象。它之所以被称为工厂模式是因为它负责“生产”对象。工厂方法的参数是你要生成的对象对应的类名称。
Example #1 调用工厂方法(带参数)
<?phpclass Example{
- mysql字符串查找函数
dcj3sjt126com
mysql
FIND_IN_SET(str,strlist)
假如字符串str 在由N 子链组成的字符串列表strlist 中,则返回值的范围在1到 N 之间。一个字符串列表就是一个由一些被‘,’符号分开的自链组成的字符串。如果第一个参数是一个常数字符串,而第二个是type SET列,则 FIND_IN_SET() 函数被优化,使用比特计算。如果str不在strlist 或st
- jvm内存管理
easterfly
jvm
一、JVM堆内存的划分
分为年轻代和年老代。年轻代又分为三部分:一个eden,两个survivor。
工作过程是这样的:e区空间满了后,执行minor gc,存活下来的对象放入s0, 对s0仍会进行minor gc,存活下来的的对象放入s1中,对s1同样执行minor gc,依旧存活的对象就放入年老代中;
年老代满了之后会执行major gc,这个是stop the word模式,执行
- CentOS-6.3安装配置JDK-8
gengzg
centos
JAVA_HOME=/usr/java/jdk1.8.0_45
JRE_HOME=/usr/java/jdk1.8.0_45/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME
- 【转】关于web路径的获取方法
huangyc1210
Web路径
假定你的web application 名称为news,你在浏览器中输入请求路径: http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果: 1、 System.out.println(request.getContextPath()); //可返回站点的根路径。也就是项
- php里获取第一个中文首字母并排序
远去的渡口
数据结构PHP
很久没来更新博客了,还是觉得工作需要多总结的好。今天来更新一个自己认为比较有成就的问题吧。 最近在做储值结算,需求里结算首页需要按门店的首字母A-Z排序。我的数据结构原本是这样的:
Array
(
[0] => Array
(
[sid] => 2885842
[recetcstoredpay] =&g
- java内部类
hm4123660
java内部类匿名内部类成员内部类方法内部类
在Java中,可以将一个类定义在另一个类里面或者一个方法里面,这样的类称为内部类。内部类仍然是一个独立的类,在编译之后内部类会被编译成独立的.class文件,但是前面冠以外部类的类名和$符号。内部类可以间接解决多继承问题,可以使用内部类继承一个类,外部类继承一个类,实现多继承。
&nb
- Caused by: java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.Exten
zhb8015
maven pom.xml关于hibernate的配置和异常信息如下,查了好多资料,问题还是没有解决。只知道是包冲突,就是不知道是哪个包....遇到这个问题的分享下是怎么解决的。。
maven pom:
<dependency>
<groupId>org.hibernate</groupId>
<ar
- Spark 性能相关参数配置详解-任务调度篇
Stark_Summer
sparkcachecpu任务调度yarn
随着Spark的逐渐成熟完善, 越来越多的可配置参数被添加到Spark中来, 本文试图通过阐述这其中部分参数的工作原理和配置思路, 和大家一起探讨一下如何根据实际场合对Spark进行配置优化。
由于篇幅较长,所以在这里分篇组织,如果要看最新完整的网页版内容,可以戳这里:http://spark-config.readthedocs.org/,主要是便
- css3滤镜
wangkeheng
htmlcss
经常看到一些网站的底部有一些灰色的图标,鼠标移入的时候会变亮,开始以为是js操作src或者bg呢,搜索了一下,发现了一个更好的方法:通过css3的滤镜方法。
html代码:
<a href='' class='icon'><img src='utv.jpg' /></a>
css代码:
.icon{-webkit-filter: graysc