my button "SD" can be seen without full screen.
"" :
how to solve this problem, wait online
my button "SD" can be seen without full screen.
"" :
how to solve this problem, wait online
set a lower video index. If the levels of the two elements are different, remember to set the z-index of their parent elements
set z-index:2147483647
to SD and put this element after the video tag.
<video></video>
<a></a>
reason: after the video is full screen, its z-index is set to the maximum value. Under chrome and ie, it is 2147483647. Z-index exceeding this value will be set to the maximum value by default.
so, if an is in front of video, the two of them have the same Zmuri index. an is blocked by video. On the contrary, a will be on the video.
the solution is to capture the click event at full screen, determine whether the click occurs on the "SD" button, and then trigger the "SD" click event.
$(document).click(function(event) {
if(isFullScreen()) {
console.log(event.originalEvent);
var $button = $('.videoModal a');
var btnOffset = $button.offset();
var buttonWidth = $button.outerWidth();
var buttonHeight = $button.outerHeight();
if((event.screenX >= btnOffset.left && event.screenX <= btnOffset.left + buttonWidth) &&
(event.screenY >= btnOffset.top && event.screenY <= btnOffset.top + buttonHeight)) {
$button.trigger('click');
return false;
}
}
});
function isFullScreen() {
var fullscreenElement =
document.fullscreenEnabled
|| document.mozFullscreenElement
|| document.webkitFullscreenElement;
var fullscreenEnabled =
document.fullscreenEnabled
|| document.mozFullscreenEnabled
|| document.webkitFullscreenEnabled;
if (fullscreenElement == null)
{
return false;
} else {
return true;
}
}
Ah, have you solved it
I got a set of data, which is to choose the type of question. How can I tell if I have chosen the right one answera: "Olympic Games " answerb: "Asian Games " answerc: "Paralympic Games " answerd: "University Games " id: "1772 " question: "f...
what is the current level of support for vw,vh layouts in mobile browsers? ...
modify the markdown file under the ant-design-pro-site site and use the relative path to introduce the picture in the markdowm file. attachment: the picture was originally introduced using the http path. <img src=". images 1.jpg" > ...
Icon shows the red part. Choose how to write the effect in css ....
how to make the content of table not be centered vertically? you can set valign= "top " in html, then how to set it in element The table is centered vertically when it is stretched out, and the working hours are aligned with the one at 8 o clock . ...
error WARNING in configuration The mode option has not been set. Set mode option to development or production to enable defaults for this environment. WARNING in asset size limit: The following asset(s) exceed the recommended size limi...
now you need to make a front-end page for ipad pro2. Ui gave the design drawing 2732 to 2048. Should my page be set to the same size ?...
A static page is written on the computer, and the text and pictures are displayed vaguely under chrome. I can t bear to look directly at it, but it s okay to display it under Firefox. It is no problem for chrome to open other pages, just write this pag...
A rookie at the front end, get the UI picture and do the website. The following CSS Rem 12pxterCSS Rem 14pxtransCSS Rem 14px; , how on earth should I choose? my current understanding: `CSS Rem 12px;` width= 40rem; `CSS Rem 16px;` width= 30rem; ...
I haven t done it. I want to know what the train of thought is . Does first store each section structure as a string, then scroll to the specified location, and execute the following code? is similar to paging loading, but the content and layout of ...
<tr v-for="item in tableData"> <td :class="same">{{item.td}}< td> < tr> computed:{ same(){ let arr = ???.push( c ); return{ red: arr == [ a , c ] } } } here? It should be the dat...
in using ant design mobile, you need to use the kind of Select component in antd, but it is not in ant design mobile. What should I do ...
$("-sharpadd_link").click(function(){ var link_html = "<div class= "linkAll_inn ">" + "<div class= "activity_theme ">" + ...
The problem with is roughly as follows: there is a list page with a title bar in the middle. When I pull up a certain distance, the title bar is fixed and suspended at the top, and when pulled down a certain distance, it is put back to its original pos...
the question is as perplexed as the title. Design website, using personalized fonts, such as: the following three fonts, so download online, import locally. ...
company website, pure static text, would like to ask how to quickly achieve a Chinese-English switching function? some methods have been tried so far, such as method 1: translate the whole document directly with Microsoft js file , but this metho...
how is the style of CAPTCHA realized? how to find the principle! question: is there an input for each number? Find the solution ...
means that the width on the right side of the div is fixed, pull the left border, and the width shrinks from left to right div1,div2. div2div1div2 tablediv ...
< html lang= "en " > < head > <meta charset="UTF-8"> <title>Document< title> <script type="text javascript" src="vue.js">< script> <script type="text javascript" src="vue...
A question I was asked by the back end a few days ago, because the background page is compatible with ie8, it should be carried out under ie. gives iframe a move-out event, which is triggered as soon as the mouse moves over the scroll bar when the mouse...