如果我们指定的行高大于font-size,我们可以减少与font-height相同的光标高度吗?看看Chrome浏览器中的这个小提琴,您将得到我正在谈论的内容.这在Firefox中运行良好,问题仅在Chrome浏览器中.Textarea html是:
<TEXTAREA style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 50px; height: 150px;"></TEXTAREA>
Run Code Online (Sandbox Code Playgroud)
编辑:
我想要行之间的行高空间,因为我有textarea的背景图像,水平线我试图放置文本.
我正在编写一个连接到 XMPP 服务器的聊天应用程序,如果用户选择,我想让他们选择连接到他们的谷歌聊天帐户,而无需输入凭据......我使用了谷歌的 javascript api弹出谷歌登录表单,成功登录后将生成访问令牌。现在使用该访问令牌和用户电子邮件 ID,我想与 xmpp 服务器进行通信,以便用户可以与他们的 gtalk 朋友聊天。
我搜索了很多,但没有找到解决方案。无论我找到了所需的用户密码,但我想使用访问令牌。
SASLAuthentication.registerSASLMechanism("X-OAUTH2", GoogleConnectSASLMechanism.class);
SASLAuthentication.supportSASLMechanism("X-OAUTH2", 0);
config = new ConnectionConfiguration(server, 5222, 'gmail.com');
config.setSASLAuthenticationEnabled(true);
config.setSecurityMode(SecurityMode.enabled);
config.setReconnectionAllowed(true);
connection = new XMPPConnection(config);
connection.connect();
connection.login(username, session_key, "Chat");
setServer(SERVER_TYPE.GTALK);
Run Code Online (Sandbox Code Playgroud)
GoogleConnectSASLMechanism.java 代码如下:-
package org.jivesoftware.smack;
import java.io.IOException;
import java.net.URLEncoder;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.Map;
import javax.security.auth.callback.CallbackHandler;
import javax.security.sasl.Sasl;
import org.jivesoftware.smack.SASLAuthentication;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.sasl.SASLMechanism;
import org.jivesoftware.smack.util.Base64;
public class GoogleConnectSASLMechanism extends SASLMechanism {
public static final String NAME="X-OAUTH2";
public GoogleConnectSASLMechanism(SASLAuthentication …Run Code Online (Sandbox Code Playgroud) 我在Redshift上有一张约300米记录的表格.
无论如何我们可以指定年月作为分配密钥而不是时间戳.如果我选择关键的diststyle,它会改善性能,因为我们主要需要查询季度数据.