current location:Home > Technical Articles > Web Front-end > H5 Tutorial

  • Recommended content about wxcanvas
    Recommended content about wxcanvas
    The test phone is IPHONE6, developer tool version 0.10.102800. The canvas in the WeChat applet is different from the h5 canvas in many ways. The canvas of the WeChat applet is called wxcanvas below. Here are all the useful information I tested little by little. Please read patiently. : 1.wxcanvas does not have width and height attributes and width and height styles like h5canvas. He only has Style style, which can be understood as a frame; 2.WXCAN ...
    H5 Tutorial 2274 2017-06-15 11:44:40
  • Recommended articles related to image grayscale
    Recommended articles related to image grayscale
    Specific steps: 1. Convert the collected color license plate image into a grayscale image. 2. Use Gaussian smoothing on the grayscale image, and then perform neutral filtering on it. 3. Use the Sobel operator to perform edge detection on the image. 4. The binary image is subjected to morphological combination transformation of corrosion, expansion, opening operation, and closing operation. 5. Perform contour search on the morphologically transformed image, and extract the license plate according to the aspect ratio of the license plate<!-- more --&gt ; Code to achieve image grayscale gray = cv2.cvtColor(img,&nbsp...
    H5 Tutorial 1613 2017-06-15 11:28:37
  • 10 recommended articles about mourning
    10 recommended articles about mourning
    Many times, websites need to change from color to black and white. For example, during the Wenchuan earthquake, in order to express condolences, many websites were programmed from color to black and white. So, let’s summarize how to change web pages from color to black and white: 1 .Change the entire interface of the website or web page into black and white and gray. There is not much to say about the css code. Please look at the code to change the website or web page into black and white.###Web page black and white code external style **Please use *2 when writing the .css file. The four codes that change the website to black and white and gray explain in detail the 2008.5.12 Wenchuan earthquake in Sichuan, which took away many lives. It is regrettable. In order to express our condolences to the victims...
    H5 Tutorial 1980 2017-06-15 11:16:59
  • 10 recommended articles about shooting
    10 recommended articles about shooting
    Function description: In the game, while avoiding enemy attacks, you need to collect three different keys, open the corresponding doors, and finally reach the destination. The game is also based on the self-developed HTML5 game framework cnGameJS. It is recommended to use Chrome browser to view. Effect preview: The arrow keys control movement, the space bar shoots, and the shift key opens the door. Implementation analysis: In the previous article "HTML5 Implementation of 3D Maze", the effect of the 3D scene was simulated through the radiation method, and this article adds more...
    H5 Tutorial 2109 2017-06-15 11:13:07
  • Summary of recommended 10 prompt source codes (collection)
    Summary of recommended 10 prompt source codes (collection)
    The editor below will bring you an article on how to implement h5 input box prompts + normal text box prompts. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let's follow the editor and take a look. XML/HTML Code Copy content to the clipboard<input id="username" name="username" type="text" pl...
    H5 Tutorial 2561 2017-06-15 10:57:17
  • Brief discussion on rules and detailed explanation examples tutorial
    Brief discussion on rules and detailed explanation examples tutorial
    The editor below will bring you a detailed explanation of HTML5 tag nesting rules [must read]. The editor thinks it’s pretty good, so I’d like to share it with you now, and give it a reference. In HTML5, the child elements of the <a> element can be block-level elements, which was considered against the rules before. This article will introduce in detail the classification of tag nesting rules of HTML5. Before the emergence of HTML5, elements were often distinguished according to block, inline, and inline-block. In HTML5, elements no longer follow the display attribute...
    H5 Tutorial 1562 2017-06-15 10:56:01
  • Summary of h5 practical use and analysis methods
    Summary of h5 practical use and analysis methods
    The video tag in HTML5 and its effect of imitating a video player are widely used in some mobile phones. Because the mobile version has basically abolished the dictatorship of flash and allowed HTML5 to be the master, it has better support for videos. So today I will give you a small example of HTML5 video tag simulating a video player, so that you can better understand HTML5 and its effective application in projects. HTML code<!--Put the local ogv audio in src --><video&nb...
    H5 Tutorial 1674 2017-06-15 10:52:34
  • Recommended 10 commonly used image compression and upload methods, welcome to download!
    Recommended 10 commonly used image compression and upload methods, welcome to download!
    The editor below will bring you an in-depth study of the image compression upload function implemented in HTML5. The editor thinks it’s pretty good, so I’d like to share it with you now. I also want to give you a reference. Let’s follow the editor and take a look. In the previous article, we mentioned uploading pictures on the mobile terminal. We know that traffic is still quite expensive now. The pixels of mobile phones are getting higher and higher. Taking a picture can easily take several megabytes. , can't afford to be hurt. Although the client can easily compress images and then upload them, our application may still be opened in the browser. What should we do? Image compression. Affected by the previous development thinking on PC, how can Nima js have the authority to operate...
    H5 Tutorial 2187 2017-06-15 10:46:15
  • Recommended articles about swinging
    Recommended articles about swinging
    This is another 3D animation masterpiece based on HTML5 Canvas. It is a 3D clothes swing animation special effect that can flutter in the wind, which is very realistic. When we slide the mouse over the clothes, the clothes will have a swinging animation. When we click the mouse, the clothes will swing more violently. Online demo source code download HTML code<p style="width:500px;margin:10px auto"> <canvas id=&q...
    H5 Tutorial 1569 2017-06-15 10:46:00
  • 4 recommended courses on change
    4 recommended courses on change
    In the previous section, we talked about color and pixels. In fact, in most cases, we do not need pixel-level operations. We only need to set the overall color. 1. Basic colors Learn while playing in HTML5 (2) - In basic drawing, we mentioned that there are two contextual attributes that can be used to set colors: strokeStyle determines the color of the line you currently want to draw, and fillStyle determines the color you currently want to draw. The color value of the filled area can be a valid string that conforms to the CSS3 color value standard. Down...
    H5 Tutorial 1755 2017-06-15 10:45:18
  • Recommended content related to native drag and drop
    Recommended content related to native drag and drop
    Dragable attribute Before, we have introduced several relevant knowledge about native drag and drop in HTML5. Today I will introduce to you some other small things in HTML5 drag and drop. Without further ado, let’s take a look together. By default, links, text, and images are draggable, so you don’t need to write code to drag them. If you want other element tags to be draggable, then only HTML5 can do it. HTML5 specifies the dragable attribute for all HTML elements, indicating whether the element can be dragged. In tags for links and images...
    H5 Tutorial 1503 2017-06-15 10:33:35
  • Recommended 10 cross-document special effects (collection)
    Recommended 10 cross-document special effects (collection)
    HTML5 supports cross-document messaging (Cross-Document Messaging). Since message communication is used, events must occur. According to the generation and consumption of events, we can find the sender and receiver, that is, Sender and Listener. Litener needs to do the following work: write a message processing function; register the message processing function: addEventListener('message', function, fal...
    H5 Tutorial 1598 2017-06-15 10:30:56
  • DOM object introductory tutorial: 10 recommended zero-based introductory tutorials on DOM objects
    DOM object introductory tutorial: 10 recommended zero-based introductory tutorials on DOM objects
    <canvas></canvas> is just a container for drawing graphics. In addition to attributes such as id, class, and style, it also has height and width attributes. There are three main steps for drawing on the <canvas>> element: 1. Get the DOM object corresponding to the <canvas> element, which is a Canvas object; 2. Call the getContext() method of the Canvas object to get a CanvasRenderingC...
    H5 Tutorial 5476 2017-06-15 10:15:36
  • 10 recommended courses on definition lists
    10 recommended courses on definition lists
    There are many basic tags in HTML5. Today we will introduce list tags. List tags can arrange text elements in the form of a list in a web page. There are three types of list tags: ordered list, unordered list, and custom list like: <ul type =a>                                                                           
    H5 Tutorial 1555 2017-06-15 10:14:37
  • 10 recommended articles about local preview
    10 recommended articles about local preview
    This article mainly introduces JS+HTML5 to realize the preview effect of uploaded images. It analyzes the specific operation steps and related implementation techniques of local preview of javascript uploaded images in the form of a complete example. Friends in need can refer to the following examples of this article to describe the implementation of uploading with JS+HTML5. Picture preview effect. I share it with you for your reference. The details are as follows: In the project, I encountered a file upload with the input tag file type, and I wanted to preview the image before uploading. A previous solution was to upload the file first and then return the address. Displayed on the page,...
    H5 Tutorial 2320 2017-06-15 10:05:00

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28