就在最近,我注意到文本输入在Google Chrome中存在显示问题,但仅在文本为空时才显示.
请注意,在顶部图像中,当输入为空时,光标在文本输入中过高.

但是一旦我们输入了一些文字,它就会纠正自己:

JSFiddle来说明.可能需要谷歌Chrome版本:38.0.2125.101米
HTML:
<input name="tb_password" type="password" id="tb_password" class=" validate[required,custom[password]]" placeholder="Type your password here" autocomplete="off" style="
margin: 0;
line-height: 46px;
">
Run Code Online (Sandbox Code Playgroud)
CSS:
input[type="text"], input[type="password"] {
width: 100%;
height: 46px;
line-height: 46px;
font-size: 11pt;
color: #555 !important;
text-indent: 15px;
border-top: solid 1px #c5c5c5;
border-left: solid 1px #c5c5c5;
border-bottom: solid 1px #dadada;
border-right: solid 1px #dadada;
background: #fff;
-webkit-box-shadow: inset 0px 1px 5px 0px rgba(0, 0, 0, .1);
box-shadow: inset 0px 1px 5px 0px rgba(0, 0, 0, .1);
}
Run Code Online (Sandbox Code Playgroud) 我看到一小部分生产用户随机报告这个与使用Xamarin.Android加密/解密字符串相关的异常,但不幸的是我无法重现它.
什么可能导致这种情况和/或如何重现异常,以便我可以找出修复/解决方法?
[CryptographicException: Bad PKCS7 padding. Invalid length 147.]
Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException(PaddingMode padding, Int32 length, Int32 position):0
Mono.Security.Cryptography.SymmetricTransform.FinalDecrypt(System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount):0
Mono.Security.Cryptography.SymmetricTransform.TransformFinalBlock(System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount):0
System.Security.Cryptography.CryptoStream.FlushFinalBlock():0
com.abc.mobile.shared.Security+PasswordEncoder.DecryptWithByteArray(System.String strText, System.String strEncrypt):0
Run Code Online (Sandbox Code Playgroud)
编辑:这是我用来加密/解密的代码
private string EncryptWithByteArray(string inPassword, string inByteArray)
{
byte[] tmpKey = new byte[20];
tmpKey = System.Text.Encoding.UTF8.GetBytes(inByteArray.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] inputArray = System.Text.Encoding.UTF8.GetBytes(inPassword);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(tmpKey, mInitializationVector), CryptoStreamMode.Write);
cs.Write(inputArray, 0, inputArray.Length);
cs.FlushFinalBlock();
return Convert.ToBase64String(ms.ToArray());
}
private string …Run Code Online (Sandbox Code Playgroud) 我正在查看SQL Server 2016时态表,找不到任何有效的方法来查询现在删除的所有历史记录.
我不喜欢软删除或移动到'已删除的项目表',因为我觉得时态表是多余的.
这可以通过时态表以有效的方式实现吗?
我已经成功地在几个活动中实现了AdjustResize,但是特别是一个活动仍然拒绝做任何事情,但是当显示键盘时它会平移.
我有什么想法我做错了吗?
我正在使用xamarin属性,如下所示:
[Activity (
LaunchMode=Android.Content.PM.LaunchMode.SingleTask,
Label = "Active Jobs",
MainLauncher = false,
Icon = "@drawable/icon",
WindowSoftInputMode = SoftInput.AdjustResize,
ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait)]
Run Code Online (Sandbox Code Playgroud)
编辑:此活动的基础axml布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:minWidth="25px"
android:minHeight="25px"
android:background="#FFFFFF"
android:gravity="center|top"
android:paddingTop="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingBottom="40dp">
<TextView
android:text="No active works on this device."
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="0dp"
android:gravity="center"
android:layout_centerHorizontal="true"
android:layout_alignParentTop="true"
android:visibility="gone"
android:textColor="#006985"
android:textSize="30dp" />
<ListView
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textColor="#006985"
android:textSize="30dp"
android:divider="@null"
android:dividerHeight="-0.6dp"
android:layout_gravity="top" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center|center"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:paddingTop="40dp"
android:paddingBottom="60dp" …Run Code Online (Sandbox Code Playgroud) 我们几年来一直在使用MapQuest API密钥,但是在过去24小时左右的某个时间点,地图已停止工作,我们收到错误:"此密钥未获得此服务的授权."
我登录后,我们的旧密钥被删除,并自动为新的Open Maps API生成了一个新密钥.
我等了一个多小时后仍然这个新的API密钥给出了此错误消息.
有谁知道故事是什么?
我在 SQL Azure 中创建了一些时态表,但我不知道如何修改它们。添加新列或修改现有列的最佳方法是什么?