视频播放刷新问题
This commit is contained in:
		
							parent
							
								
									fa795065b6
								
							
						
					
					
						commit
						6b533f47ad
					
				|  | @ -6,7 +6,7 @@ | ||||||
|     <meta charset="UTF-8"> |     <meta charset="UTF-8"> | ||||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||
|     <title>项目概况</title> |     <title>项目概况</title> | ||||||
|     <script src="common/lib/flex.js"></script> |     <%--<script src="common/lib/flex.js"></script>--%> | ||||||
|     <link rel="stylesheet" href="common/css/base.css"> |     <link rel="stylesheet" href="common/css/base.css"> | ||||||
|     <link rel="stylesheet" href="common/css/project.css"> |     <link rel="stylesheet" href="common/css/project.css"> | ||||||
|     <link rel="stylesheet" href="common/css/swiper-bundle.min.css"> |     <link rel="stylesheet" href="common/css/swiper-bundle.min.css"> | ||||||
|  | @ -235,7 +235,7 @@ | ||||||
|         } |         } | ||||||
|     </style> |     </style> | ||||||
| </head> | </head> | ||||||
| <body class="wrap" onresize="myFunction()"> | <body class="wrap" > | ||||||
|     <form id="form1" runat="server"> |     <form id="form1" runat="server"> | ||||||
|         <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager> |         <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager> | ||||||
|         <f:Panel ID="Panel1" Layout="Region" ShowBorder="false" ShowHeader="false" runat="server"> |         <f:Panel ID="Panel1" Layout="Region" ShowBorder="false" ShowHeader="false" runat="server"> | ||||||
|  | @ -1161,6 +1161,61 @@ | ||||||
|         //function CommpanyFunction() { |         //function CommpanyFunction() { | ||||||
|         //    $('[id$="_btnCommpany"]').click(); |         //    $('[id$="_btnCommpany"]').click(); | ||||||
|         //} |         //} | ||||||
|  | 
 | ||||||
|  |         (function flexible(window, document) { | ||||||
|  |             var docEl = document.documentElement | ||||||
|  |             var dpr = window.devicePixelRatio || 1 | ||||||
|  | 
 | ||||||
|  |             // adjust body font size | ||||||
|  |             function setBodyFontSize() { | ||||||
|  |                 if (document.body) { | ||||||
|  |                     document.body.style.fontSize = (16 * dpr) + 'px' | ||||||
|  |                 } | ||||||
|  |                 else { | ||||||
|  |                     document.addEventListener('DOMContentLoaded', setBodyFontSize) | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             setBodyFontSize(); | ||||||
|  | 
 | ||||||
|  |             function setRemUnit() { | ||||||
|  |                 var rem = docEl.clientWidth / 24 | ||||||
|  |                 docEl.style.fontSize = rem + 'px' | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|  |             setRemUnit() | ||||||
|  | 
 | ||||||
|  |             // reset rem unit on page resize | ||||||
|  |             //window.addEventListener('resize', setRemUnit) | ||||||
|  |             //window.addEventListener('pageshow', function (e) { | ||||||
|  |             //    if (e.persisted) { | ||||||
|  |             //        setRemUnit() | ||||||
|  |             //    } | ||||||
|  |             //}) | ||||||
|  | 
 | ||||||
|  |             // detect 0.5px supports | ||||||
|  |             if (dpr >= 2) { | ||||||
|  |                 var fakeBody = document.createElement('body') | ||||||
|  |                 var testElement = document.createElement('div') | ||||||
|  |                 testElement.style.border = '.5px solid transparent' | ||||||
|  |                 fakeBody.appendChild(testElement) | ||||||
|  |                 docEl.appendChild(fakeBody) | ||||||
|  |                 if (testElement.offsetHeight === 1) { | ||||||
|  |                     docEl.classList.add('hairlines') | ||||||
|  |                 } | ||||||
|  |                 docEl.removeChild(fakeBody) | ||||||
|  |             } | ||||||
|  |         }(window, document)) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |         function fontSize(res) { | ||||||
|  |             let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; | ||||||
|  |             if (!clientWidth) return; | ||||||
|  |             let fontSize = clientWidth / 1920; | ||||||
|  |             return res * fontSize; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|     </script> |     </script> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue