我不知道这是否可以解决,但我创建了这个网站,当我的用户点击一些div时,所选的div似乎在chrome中有黄色边框,在safari中有类似的边框.你可以在这里看到黄色边框
.是否可以禁用此功能?
嗨我正在使用谷歌融合表和谷歌地图,事情是我的标记显示正确,但我想插入一些图像到inforwindow.所以问题是我查询这些标记的位置,这些标记可以有很多类别(这就是为什么我不能使用合并表).当用户点击标记时,infowindow会显示并显示标记上的信息.它过去只包含类别的文本,但我想从每个类别中检索图标以在infowindow上显示该图标.问题是第二个查询花费的时间比显示信息窗口所花费的时间长.我补充道,所以我做了一个蹩脚的修复
$('#infoWindowsCatDer').append(info);
Run Code Online (Sandbox Code Playgroud)
在第二个查询结束时,所以我猜你可以看到问题,如果windows显示的时间比查询要长一些会发生什么.这是应该由事件处理的事情吗?
是否有活动
lastWindow.open(map);
Run Code Online (Sandbox Code Playgroud)
因此,当infowindow完全打开时,它可以附加图像吗?
我刚开始使用@ font-face这是我的CSS之上
@font-face {
font-family: Avenir;
src: url(../fonts/AvenirLTStd-Medium.otf);
}
body{
font-family:"Avenir",Helvetica;
background:#fff url(../images/main_bg.png) repeat-x scroll 0 0;
color:#321244;
}
Run Code Online (Sandbox Code Playgroud)
我在下面有关于joomla的菜单
#menu_bottom ul li a {
font-size:12px;
font-weight:600;
letter-spacing:-0.6px;
text-transform:uppercase;
Run Code Online (Sandbox Code Playgroud)
这是在html文件上
<li class="item23"><a href="/index.php?option=com_user&view=login&Itemid=13&lang=en"><span>Menu Item</span></a></li>
Run Code Online (Sandbox Code Playgroud)
这适用于Firefox,但它在Safari或Chrome上无法正常工作,字体正确但字体重量无法正常工作,我在google-chrome开发工具上检查并且计算字体重量为600.我尝试过使用100或900在safari和chrome上的结果是相同的,字体重量不会改变.
我的css文件顶部的font-face声明有问题吗?
我应该尝试添加这样的东西
@font-face {
font-family: Avenir;
src: url(../fonts/AvenirLTStd-Heavy.otf);
font-style: bold;
}
Run Code Online (Sandbox Code Playgroud)
我试过但没有工作.我应该添加另一种字体,这是我在我的字体目录上
AJensonPro-BoldIt.otf AvenirLTStd-BookOblique.otf
AJensonPro-Bold.otf AvenirLTStd-Book.otf
AJensonPro-It.otf AvenirLTStd-HeavyOblique.otf
AJensonPro-LtIt.otf AvenirLTStd-Heavy.otf
AJensonPro-Lt.otf AvenirLTStd-LightOblique.otf
AJensonPro-Regular.otf AvenirLTStd-Light.otf
AJensonPro-SemiboldIt.otf AvenirLTStd-MediumOblique.otf
AJensonPro-Semibold.otf AvenirLTStd-Medium.otf
AvenirLTStd-BlackOblique.otf AvenirLTStd-Oblique.otf
AvenirLTStd-Black.otf AvenirLTStd-Roman.otf
Run Code Online (Sandbox Code Playgroud)
或者我应该尝试另一种字体格式,不是otf的东西,在IE中看起来似乎工作的宽度更大.我仍然需要解决这个问题.
我不知道发生了什么,但我有这样的菜单设置
<div class="indice_item activo">
<div class="indice_item">
<div class="indice_item">
<div class="indice_item">
<div class="indice_item">
<div id="puntero" style="width: 180px; height: 19px; top: 70px; left: 0px; background-color: rgb(10, 173, 247);"> </div>
Run Code Online (Sandbox Code Playgroud)
问题是div.puntero是一个div,当它悬停在不同的indice_item上时跟随鼠标.我用jquery做它,它的功能是动画的.当页面加载时会创建这个div.puntero,它会查找此菜单的第一项并获取宽度和顶部和左侧坐标,因此它可以在具有类activo的项目下设置div.puntero.
这是执行此操作的代码
/*
* Seleccionado el primero activo
*/
$(document).ready(function() {
$('div.indice_item').last().after('<div id="puntero"> </div>');
//seteamos el puntero donde debe estar
ancho=$('div.indice_item').first().width()
alert(ancho);
$('#puntero').width($('div.indice_item').first().width());
$('#puntero').height(($('div.indice_item').first().height()+3));
$('#puntero').css({
"top" : $('div.indice_item').position().top,
"left" : $('div.indice_item').position().left
});
$('.indice_item').each(function (){
//$(this).
});
});
Run Code Online (Sandbox Code Playgroud)
这在firefox中完美运行,但在chrome中我有几个问题,它似乎工作正常.但后来我按下重装或F5并且div.puntero的宽度变得疯狂.我添加了警报(ancho); 对于宽度,当我进入页面时,它给我正确的宽度180,当我按下重新加载1665或1649时,图表.它为什么这样工作?
我正在尝试获取OAuth访问令牌以将一些数据导入到融合表中.我正在尝试使用Google API PHP客户端.我已经为此创建了一个服务帐户,并且正在使用代码,主要来自serviceAccount示例:
function access_token()
{
$client = new Google_Client();
$client->setAuthClass ('Google_OAuth2');
// ^ Don't know if this line is required,
// ^ but it fails just as well without it.
$client->setApplicationName ('Mysite.dom.ain');
$client->setAssertionCredentials (new Google_AssertionCredentials
( 'MANY-NUMBERS-LETTERS-DASHES@developer.gserviceaccount.com',
array ('https://www.googleapis.com/auth/fusiontables'),
file_get_contents ('path/to/my/privatekey.p12') ));
$client->setClientId ('NUMBERS-LETTERS-DASHES.apps.googleusercontent.com');
$client->authenticate();
// ^ Also fails equally good with and without this line.
return $client->getAccessToken();
}
Run Code Online (Sandbox Code Playgroud)
一点调试输出显示$client->authenticate()返回true,但$client->getAcessToken()返回null.没有异常被抛出.我觉得我做的事情从根本上是错误的.如果是这样,请原谅我的愚蠢并指出我正确的方向.
将corsfilter添加到ApplicationPath后,我无法访问任何服务
这是一个例子
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import org.jboss.resteasy.plugins.interceptors.CorsFilter;
@ApplicationPath("/")
public class JaxRsActivator extends Application {
private Set<Object> singletons = new HashSet<Object>();
private Set<Class<?>> classes = new HashSet<Class<?>>();
public JaxRsActivator() {
CorsFilter corsFilter = new CorsFilter();
corsFilter.getAllowedOrigins().add("*");
corsFilter.setAllowedHeaders("Content-Type");
singletons.add(corsFilter);
}
@Override
public Set<Class<?>> getClasses() {
return classes;
}
@Override
public Set<Object> getSingletons() {
return singletons;
}
}
Run Code Online (Sandbox Code Playgroud)
如果我卷曲,我会得到这个,
curl -i http://localhost:8080/unika/usuarios -H "Origin:otherdomain.com"
HTTP/1.1 404 Not Found
Connection: keep-alive
Access-Control-Allow-Origin: otherdomain.com
X-Powered-By: Undertow 1
Server: Wildfly 8 …Run Code Online (Sandbox Code Playgroud) 基本上我想做一个几乎像键盘记录器的程序.问题是我作为网络管理员有时候我不记得在某些情况下我对机器做了什么,或者同时我为linux制作了howto和教程.我想记录我做了什么.所以基本上这个程序的想法是:你输入程序的名称,(我现在称之为鼠标)
$ rat
Welcome everything from now on will be recorded
recording $ ls
file1 file2 file3
recording $ quit
Bye bye
Run Code Online (Sandbox Code Playgroud)
你所做的一切都将转到xml文件.像这样的东西
<?xml version='1.0' encoding='UTF-8' ?>
<rat>
<command>
<input>ls</input>
<output>file1 file2 file3</output>
<err><err>
</command>
</rat>
Run Code Online (Sandbox Code Playgroud)
我正在fp_in = popen( input, "w");
和一些测试system,但首先与popen我不能更改目录和"系统我不能正确管理输入和输出.
我还在检查是否有什么东西我可以像插件一样猛击但没有找到任何信息.
在某些方面如果感觉像我应该创建另一个shell(这超出了我目前的能力)或fork bash sh.但它应该是那么复杂的权利.我很乐意建议从哪里开始.我和C生锈了,所以我又读了很多基本的东西.
使用xml文件,后来我正在考虑制作一个程序来存储这些数据和/或编辑这些数据,这样我就可以创建tutials和howto.
我可以想到很多方法可以将它扩展到使用printscreen,这样所有存储的图像都会转到一个文件,你可以上传到服务器(目前我很乐意存储数据).它可能是一个有用的工具.
PS.我知道这也可以用于邪恶的事情.
我希望我的用户上传他们的 flac 文件并能够读取他们的元数据。在阅读了 flac 使用的标记系统类型(vorbis 评论,http://en.wikipedia.org/wiki/FLAC)之后,我正在寻找一个允许我在 Java 中读写 vorbis 评论的库。我想知道这是否适用于 flac、http://code.google.com/p/jvorbiscomment/或仅适用于 ogg。有没有其他你知道的选择。
谢谢
我想使用 express 为我已经在工作的阿波罗服务器添加订阅,但我什至无法连接到操场。我从操场上得到这个错误
"error": "Could not connect to websocket endpoint ws://localhost:4000/graphql. Please check if the endpoint url is correct."
Run Code Online (Sandbox Code Playgroud)
从 Firefox 和 chrome 我得到类似的错误
Firefox can’t establish a connection to the server at ws://localhost:4000/graphql
Run Code Online (Sandbox Code Playgroud)
这是我的 app.js 我的主文件。
const express = require('express');
const mongoose = require('mongoose');
const { ApolloServer } = require('apollo-server-express');
const cors = require('cors');
const session = require('express-session');
const Keycloak = require('keycloak-connect');
const { typeDefs } = require('./graphql/Schema');
const { resolvers } = require('./graphql/Resolvers');
const { userTypeDefs, userResolvers } …Run Code Online (Sandbox Code Playgroud)