我有一些代码用于在iframe中显示视频.如果用户想要在任何浏览器中切换到全屏模式,99%的时间都有效.
但是,我们在IE中找到了几个示例,其中全屏选项仅扩展为适合iframe的大小.
iframe标记呈现如下:
<iframe id="FrameContent" allowtransparency="true" frameborder="0" title="" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" src="/whatever.aspx" style="width: 1660px; height: 867px; visibility: visible;"></iframe>
Run Code Online (Sandbox Code Playgroud)
所有父/子iframe都具有上述allowfullscreen属性.
然而,从这里和其他地方阅读,似乎共识是allowfullscreen仅使用,具有="true"指定.上面的一些代码将被更改为渲染如下 -
<iframe id="FrameContent" allowtransparency="true" frameborder="0" title="" allowfullscreen src="/whatever.aspx" style="width: 1660px; height: 867px; visibility: visible;"></iframe>
Run Code Online (Sandbox Code Playgroud)
此外,其他(webkitallowfullscreen和mozallowfullscreen)似乎已被弃用,因此不再需要,这是正确的吗?
我见过其他建议,比如使用allowfullscreen="allowfullscreen"或allowfullscreen=""(因为="true"不起作用!)
我也看过msallowfullscreen和oallowfullscreen,我们目前没有使用它们.
任何人都能够澄清应该一劳永逸地使用什么?
如果用户选择提前x个小时的时区,则存在我希望保存的日期从屏幕上选择的日期改变的问题.例如,他们选择UTC + 2雅典和25/02/2016日历弹出日期,然后记录日期24/02/2016.我已经将推理范围缩小到以下事实:所选日期时间被记录为例如25/02/2016 00:00:002小时偏移量,这使得它24/02/2016 22:00:00
从未使用过之前的时区或UTC日期/时间,这非常令人困惑.
这是代码 -
oObject.RefDate = itTimeAndDate.ParseDateAndTimeNoUTCMap(Request, TextBox_RefDate.Text);
if (!string.IsNullOrEmpty(oObject.TimeZoneDetails))
{
TimeZoneInfo oTimeZone = TimeZoneInfo.FindSystemTimeZoneById(oObject.TimeZoneDetails);
oObject.RefDate = itTimeAndDate.GetUTCUsingTimeZone(oTimeZone, oObject.RefDate);
}
Run Code Online (Sandbox Code Playgroud)
RefDate等同于25/02/2016 00:00:00从ParseDateAndTimeNoUTCMap*返回的东西(下面的代码)*
static public itDateTime ParseDateAndTimeNoUTCMap(HttpRequest oTheRequest, string sValue)
{
DateTime? oResult = ParseDateAndTimeNoUTCMapNull(oTheRequest, sValue);
if (oResult != null)
return new itDateTime(oResult.Value);
return null;
}
/// <summary>
/// Translate a string that has been entered by a user to a UTC date …Run Code Online (Sandbox Code Playgroud) c# ×1
datetime ×1
fullscreen ×1
html ×1
html5-video ×1
iframe ×1
javascript ×1
timezone ×1
utc ×1