小编col*_*cmc的帖子

更改新的Google Recaptcha(v2)宽度

我们刚刚开始实施新的google recaptcha,如https://www.google.com/recaptcha/intro/index.html所示

然而,新方法似乎包含在iFrame中而不是嵌入到页面中,因此使CSS应用更加困难.

然而,我们的形状是400px宽,所以我希望重新获得相同的宽度.

目前它看起来像,但我们喜欢与其他人一样.

有人知道怎么做吗?

谢谢

recaptcha布局示例

css iframe width recaptcha

66
推荐指数
8
解决办法
9万
查看次数

如何在Windows 7中运行gulp?

我试图在Windows 7上运行gulp.我相信我有所有依赖项但是当我输入gulp默认值cmd或posh-git时,我收到以下错误:

gulp : The term 'gulp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ gulp
+ ~~~~
+ CategoryInfo          : ObjectNotFound: (gulp:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能让它发挥作用?

以下是我在尝试安装gulp时收到的控制台消息

npm install gulp - g
npm http GET https: //registry.npmjs.org/gulp
    npm http 200 …
Run Code Online (Sandbox Code Playgroud)

node.js gulp

10
推荐指数
1
解决办法
3万
查看次数

Google reCAPTCHA v2拒绝加载脚本

我尝试在我的网站上启用重新捕获.我关注本教程https://developers.google.com/recaptcha/docs/display 重新捕获集成后,我收到以下错误: 在此输入图像描述

显然这是CSP的问题.

我试过从我的nginx服务器返回CSP头:

add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.google.com https://maps.googleapis.com https://www.gstatic.com";
Run Code Online (Sandbox Code Playgroud)

但这没有帮助,似乎重新捕获从另一个地方读取CSP规则...使用禁用CSP Chrome扩展everthing也可以在FireFox上使用CSP忽略警告在控制台中.问题是什么?

recaptcha content-security-policy

5
推荐指数
0
解决办法
983
查看次数

textview 中的项目符号点被切断

我有一个TextView应用程序,其文本由布局中的硬编码字符串资源设置。为了在 中获得项目符号列表TextView,我使用了对<li>元素的(非官方?)支持。这会根据需要创建适当缩进的子弹,但子弹本身的最左侧边缘被略微切断,如您所见:

在这张图片中。

我曾尝试向这些添加左填充,但它对剪切边缘没有任何作用 - 只是将整个东西向内移动。

  1. 有没有简单的解决方案来解决这个问题?
  2. 该项目符号列表的资源在哪里?

android bulletedlist textview android-layout

2
推荐指数
1
解决办法
1417
查看次数

对象解构和休息参数

我正在使用以下语法并Unexpected token在babel转换我的脚本时收到错误.但是当我在他们的'试一试'在线编译器中运行相同的脚本时,它运行正常.我的Object Destructuring和Rest参数有什么问题?

function onDestructure({one,two,three,...ten}) {
    console.log(ten)
}
Run Code Online (Sandbox Code Playgroud)

javascript ecmascript-6 babeljs

2
推荐指数
1
解决办法
757
查看次数