我在Opera和Safari上的HTML5验证有问题.
在Opera中,消息气泡不显示任何文本,而在safari中,当我按下提交按钮时不会发生验证.在IE,Mozilla或Chrome中,验证工作正常.谁能说出为什么会这样?
我在表单中的输入具有html5标准验证,具有必需属性,就是这样.
我试图在网络上搜索这个主题,但没有设法找到它.
请帮我.
谢谢
<form class="sign-in-form" action="" method="post">
<li>
<label>
<span>Username</span>
<input placeholder="Please enter your username" name="username" type="text" tabindex="1" title="It must contain the username that you have chosen at registration" required autofocus>
</label>
</li>
<li>
<label>
<span>Password</span>
<input placeholder="Please enter your password" name="password" type="password" tabindex="2" title="It must contain the password that you have chosen at registration" required>
</label>
</li>
<li>
<button name="sign-in-btn" type="submit" id="sign-in-submit">Sign In</button>
</li>
</form>
Run Code Online (Sandbox Code Playgroud) 如果有人能帮助我,我需要一些问题的帮助.我正在尝试从Sitecore字段获取图像,然后将其转换为base64字符串.
我所做的是将该内容转换为ImageField数据类型,但我似乎无法找到将其转换为的解决方案base64.
Sitecore.Data.Fields.ImageField img = itm.Fields["image"];
Run Code Online (Sandbox Code Playgroud)
有人能帮助我吗?
最好的问候,Ionut.