嗨我已经安装了Chrome Pinterest插件,当它启用时,我在我的网站上的所有图像上看到"Pin It"按钮(悬停),如何停止"Pin It"按钮出现在我的网站上,即使是Chrome扩展已启用
谷歌搜索后,我在博客上发现了以下内容:
您可以轻松地将此作为已安装扩展程序的个人禁用,但如果您不希望它与您网站上可能拥有的任何其他社交软件冲突,您只需将其添加到IMG标记:
<img src="myimage.jpg" data-pin-no-hover />
但这是单个图像,有没有其他方法可以覆盖插件以禁用chrome扩展名中的"pin it"按钮?使用JS/jQuery?
Chrome扩展程序js:http://assets.pinterest.com/ext/cr.js
编辑
<img src="myimage.jpg" data-pin-no-hover /> 似乎不再起作用了
html javascript jquery google-chrome google-chrome-extension
我需要一些关于这个C++代码如何表现和返回值的解释
#include<iostream>
using namespace std;
#define MY_MACRO(n) #n
#define SQR(x) x * x
int main()
{
//cout<<MY_MACRO(SQR(100))<<endl;
//cout<< sizeof(SQR(100))<<endl;
cout<< sizeof(MY_MACRO(SQR(100)))<<endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
到目前为止我关注的是#n返回参数的数量MY_MACRO(n)但是如果之前SQR(100)它将被替换为100 * 100(如果我们计算空格则为9个字符)但是现在sizeof(9)应该打印4但是它返回9cout<< sizeof(MY_MACRO(SQR(100)))<<endl;
它的背后是什么?
嗨,我刚刚IF在我的源中添加了一个条件,从那时起我就收到了错误
"
_HTML_在EOF之前的任何地方找不到字符串终结符"
但如果我删除它,它的工作原理 IF
我是Perl和CGI的新手,我不知道如何解决这个错误.
这是我的代码:
#!"\xampp\perl\bin\perl.exe"
use CGI qw/:standard/;
use CGI::Cookie;
%cookies = CGI::Cookie->fetch;
$Cookie = $cookies{'USER'}->value;
if ($Cookie)
{
print "Content-type: text/html\n\n";
print<<_HTML_;
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head> …Run Code Online (Sandbox Code Playgroud)