Website logo, how to solve it
Website logoI want the logo section of the website to be divided into three parts: left, middle and right. . Please give me some code advice. . What I wrote is displayed in 3 lines. . What if we can’t do it in one line? It is 3 pictures. . Three different connection responses need to be made. . ——Solution——————–Hey, html5? So many custom tags? You have come to the wrong place, you should go to the html css version
javascript-The multi-picture upload function of mobile wap site h5 cannot select multiple pictures in UC browser, how to solve it?
I have a mobile website that wants to upload multiple pictures. When I did it on the PC, the function was OK. But after it went online, I opened it in UC Browser and found that I couldn’t select multiple pictures, so I couldn’t upload multiple pictures. Yes, I use the built-in browser on my Huawei phone but I can select multiple images to upload. How can I solve the problem that UC Browser cannot select multiple images? Reply content: I have a mobile website that needs to upload multiple pictures. When I did it on the PC, the function was OK. But after it went online, I opened it in UC Browser and found that I couldn’t select multiple pictures, so I couldn’t. I uploaded multiple pictures, but I can select multiple pictures to upload using the browser that comes with my Huawei phone. How can I solve the problem that UC Browser cannot select multiple pictures? There are many wap compatibility problems, and it is easy to crash. It is recommended to pass them one by one. Then choose h5 image upload plug-in, such as WebUploader, do not use plug-ins such as flash. Nowadays, the only thing that…
javascript-LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it
LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it Reply content: LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it This requires image rotation processing in this js source code var angle = ”; this.on(‘change’, function () { var file = this.files[0]; var URL = window.URL || webkitURL; var blob = URL.createObjectURL(file); var BinaryAjax = window.BinaryAjax || ”, EXIF = window.EXIF || ”; if (BinaryAjax && EXIF) { // get photo orientation and set angle BinaryAjax(blob, function(o) { var oExif = EXIF.readFromBinaryFile(o.binaryResponse), orientation = oExif.Orientation; switch(orientation) { case 6: angle = radians(’90deg’); break; case 3: angle = radians(‘180deg’); break; case 8: angle = radians(‘270deg’); break; } }); } // function before execution if($.isFunction(obj.before)) { obj.before(this, blob, file) }; _create(blob, file); this.value = ”; // Clear temporary data }); function radians(angle) { if (typeof angle == ‘number’) return angle; return { rad: function(z) { return z; }, deg: function(z) { return Math.PI / 180 * z; } }[String(angle).match(/[a-z]+$/)[0] || ‘rad’](parseFloat(angle)); }
javascript-LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it
LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it Reply content: LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it This requires image rotation processing in this js source code var angle = ”; this.on(‘change’, function () { var file = this.files[0]; var URL = window.URL || webkitURL; var blob = URL.createObjectURL(file); var BinaryAjax = window.BinaryAjax || ”, EXIF = window.EXIF || ”; if (BinaryAjax && EXIF) { // get photo orientation and set angle BinaryAjax(blob, function(o) { var oExif = EXIF.readFromBinaryFile(o.binaryResponse), orientation = oExif.Orientation; switch(orientation) { case 6: angle = radians(’90deg’); break; case 3: angle = radians(‘180deg’); break; case 8: angle = radians(‘270deg’); break; } }); } // function before execution if($.isFunction(obj.before)) { obj.before(this, blob, file) }; _create(blob, file); this.value = ”; // Clear temporary data }); function radians(angle) { if (typeof angle == ‘number’) return angle; return { rad: function(z) { return z; }, deg: function(z) { return Math.PI / 180 * z; } }[String(angle).match(/[a-z]+$/)[0] || ‘rad’](parseFloat(angle)); }
session_destroy() cannot take effect immediately, how to solve it
session_destroy() cannot take effect immediatelyWhen linking to a PHP page in HTML, the PHP page will destroy the session, but when the page is opened, the session still exists. Only by refreshing the PHP page again can the session be destroyed. There are only two statements on this page: $_SESSION = array(); session_destroy(); session_start() has been enabled. What is the situation ——Solution—————– —When you execute session_destroy(); in page B, the previous session naturally exists, otherwise there is no need to use session_destroy();You are only re-entering page B (such as refreshing ) will find that the session is goneBecause to the user, session_destroy() only sends the instruction to log out the sessionid in COOKIE——Solution- ——————a.php <?php session_start();$_SESSION[‘name’] = “kobe”;?>se2 >b.php <?phpsession_start();$_SESSION = array();session_destroy( );var_dump($_SESSION[‘name’]);?> ——Solution Scheme——————– Quote: Quote: Quote: Then the page will never end, and of course the current session will not disappear. The connection_aborted() sentence can check whether the client is disconnected, but its execution requires outputting content on the page, so ob_flush();flush();Problem These two sentences will cause the page that destroys the session to fail to execute normally, that is, it must be refreshed manually to destroy the session So, is there any other way to close this…
GC seems to make java server application unresponsive problem, how to solve it
GC seems to make Java server applications unresponsive, how to solve it System.gc() “calls” the garbage collector to collect garbage. This is not very rigorous, but in fact it is just a “notification” “That’s all. Whether to recycle or not is determined by the garbage collector’s algorithm. You can develop a garbage collector that does nothing, or a garbage collector that waits until the memory is occupied to exceed a certain proportion before recycling. The finalize() method is a method that will be called when a class object is destroyed. When the garbage collector finds that the class object will no longer be used, it will reclaim the memory, that is, destroy the object, and finalize() is called. System.gc() of your program is the last sentence. Obviously, the Book object created in the previous sentence will not be used later, so the garbage collection algorithm provided by JDK will call the destruction method of the object to recycle it. . The java process on the server is still there, but it is not executed. What’s going on? 1. Obviously there is no log. Any program must have corresponding log records. In this way, any problems that arise can be traced…
Recursive deletion of folders in java problem, how to solve it
How to solve the problem of recursively deleting folders in Java imp How to quickly delete millions of files in Java Get the File of the folder object. Then File.listFiles() is all the subfiles under this folder. Then call the delete method to delete. How to delete subdirectories under a folder and the subfiles it contains in Java The following will introduce you to the method of deleting subdirectories under a folder and the subfiles it contains in Java: package com. cn.test1;import java.io.File;public class DeleteAllFiles {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubString filePath = “e:\\ fq\\”;System.out.println(“Start deleting file”);File file = new File(filePath);// deleteFile(file);deleteAllFilesOfDir(file);System.out.println(“Delete successfully!! “);}//Delete the folder recursively (Method 1) public static void deleteFile(File file) {if (file.exists()) {//Judge whether the file exists if (file.isFile()) {//Judge Whether it is a file file.delete();//Delete the file} else if (file.isDirectory()) {//Otherwise if it is a directory File[] files = file.listFiles();//Declare all the files in the directory Files files[];for (int i = 0;i <files.length;i ++) {//Traverse all files in the directory deleteFile(files[i]);//Iterate each file using this method }file.delete();//Delete the folder}} else {System.out.println("The deleted file does not exist");}}//Method 2 public static void deleteAllFilesOfDir(File path) {if (! path.exists())return;if (path.isFile()) {path.delete();return;}File[] files =…
Resource leakage in Java, input is never closed, how to solve it?
Java – resource leakage, input is never closed, how to solve it? Generally, you need to write *.close() when the stream is used up, but System.in is the input stream of the console and does not need to be closed. After closing, an error will be reported when used elsewhere. java socket Input/OutputStream closing problem I don’t know why you turn off the stream back and also turn off the socket, but since you need to communicate and write back, why should you turn off the stream? Generally, one socket is used and one stream is used. Once all communication operations are completed, it is enough to close both the socket and the stream. You said that if you disable it, it will block. Have you used multi-threading? For network communication and other tasks such as client/server, multi-threading is generally used. That is, one thread has one task, and the blocking of one thread does not affect other threads. continue working. How to close the window in java 1 package applicationGraphicsInOut; 2 import java.awt.*; 3 import java.awt.event.*; 4 public class ApplicationGraphicsInOut { 5 public static void main(String args[]) 6 { 7 new FrameInOut(); 8 } 9 10 }11 class FrameInOut…
JavaScript cannot call a class without a visible interface, how to solve it?
A QueryInterface call was made, requesting the default IDispatch interface for the COM-visible managed class “DCMS.Map”. However, since the class has no explicit default interface and is derived from the non-COM visible class “WeifenLuo.WinFormsUI.Docking.DockContent”, the QueryInterface call will fail. The purpose of this is to prevent non-COM-visible base classes from being subject to COM versioning rules. [/color] This is a problem that occurred after I used someone else’s control that can float and dock windows. I can’t interact with HTML. Please help me. 2 solutions #1 ref:http://www.csharpwin.com/csharpspace/13138r9945.shtml #2 Didn’t solve the problem