Home> Web design tutorial
All Dreamweaver tutorial Javascript tutorial HTML tutorial CSS tutorial Experience and skills DHTML tutorial Web effects WEB standardization
Web design tutorial
  • js export TXT sample code

    js export TXT sample code

    Copy code code as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2025-02-01
  • js code for adaptive center display of floating div

    js code for adaptive center display of floating div

    When the div is floating and the browser window changes, it cannot be displayed in the center (because the left or right value is usually set when floating). You can first use jquery to get the width of the surrounding div that changes as the browser chan
    2025-02-01
  • Use of anchor point in html

    Use of anchor point in html

    Now summarize several situations of controlling the anchor points: 1. On the same page<a name=add></a><!-- 定义锚点 --> <a href=#add>Jump to ADD</a> 2. In different pages, the anchor point is positioned in A.HTML, and the jump jump from the link of another pa
    2025-02-01
  • LocalStorage and SessionStorage User Records (Recommended)

    LocalStorage and SessionStorage User Records (Recommended)

    By reading the usage of the web storage Locastorage and SessionStorage, the god gods tried it for a trial, leaving a memorandum here. In the project, if you use storage many times, you need to store a lot of data, and you need to encapsulate it into a fun
    2025-02-01
  • Detailed explanation of the vertical centering solution in HTML5

    Detailed explanation of the vertical centering solution in HTML5

    In CSS, you have to complain. You can use margin: 0 auto; to achieve horizontal centering, but margin: auto 0 cannot achieve vertical centering. The main reason here is that the parent control, that is, the control itself, is not positioned correctly. Loo
    2025-02-01
  • In-depth understanding of variables and scope, undefined and null in JS

    In-depth understanding of variables and scope, undefined and null in JS

    1. Javascript variable scope In JavaScript, variables are mainly divided into two types: local variables and global variables, and the corresponding scopes are also local scope and global scope. 1 Local variables and scope local variables are generally de
    2025-02-01
  • Example of Canvas drawing floating ball effect

    Example of Canvas drawing floating ball effect

    Recently, I have been paying attention to blockchain information, wandering around, and accidentally saw the effect of the homepage of this website. It is a bunch of floating balls. When the ball is close, there will be a sensing line connected to it. The
    2025-02-01
  • Mobile Html5 page generation image solution

    Mobile Html5 page generation image solution

    Nowadays, there are many WeChat public account operation activities, and there is a need to generate pictures. After the pictures are generated, they can be sent to friends and circulated in Moments, which is conducive to product promotion! 1. You can use
    2025-02-01
  • The specific implementation code of js imitating hover

    The specific implementation code of js imitating hover

    Copy the code code as follows:<!DOCTYPE HTML><html><head><meta charset="utf-8"><meta name="description" content="this" />
    2025-02-01
  • IE's event transmission -event.cancelbubble example Introduction

    IE's event transmission -event.cancelbubble example Introduction

    Regarding Event.cancelBubble, because the objects in HTML are all hierarchical structures, such as one Table contains multiple TR, one TR contains multiple TD Bubbles, which is a event that can be passed from a sub -node to a father node. For example The
    2025-02-01
  • Simple example of js date is relatively small

    Simple example of js date is relatively small

    1. JS code copy code code compared with date is as follows: <script>var beginDate=$("#beginDate").val(); var endDate=$("#endDate").val(); var d1 = new Date(be
    2025-02-01
  • js simulates clicking and submitting a form as an example, compatible with mainstream browsers

    js simulates clicking and submitting a form as an example, compatible with mainstream browsers

    In actual application development, we often use JS module events, but sometimes we encounter some problems, such as click events. For a simple example, click the "Submit" button outside the form to submit the form. Let’s code. Html: Copy the cod
    2025-02-01
  • SVG sample code to implement colorful ring countdown effect

    SVG sample code to implement colorful ring countdown effect

    We often see ring countdowns, and there are many ways to implement them. But this article will introduce a new implementation method, using SVG to implement the countdown function. This article mainly uses the stroke-dasharray and stroke-dashoffset featur
    2025-02-01
  • Issues related to the adaptation of HTML5 pages to iPhoneX

    Issues related to the adaptation of HTML5 pages to iPhoneX

    1. Introduction to iPhone Develop the magnification relationship of size, but this is only an external manifestation. The influencing factors of the double graph core
    2025-02-01
  • Realization box effect based on HTML5 Canvas

    Realization box effect based on HTML5 Canvas

    When the user mouse is moved, there is a pop -up frame. This demand is very common. This is simple when dealing with HTML elements, but if it is processed by the graphics composed of HTML5 Canvas, this method is no longer applicable, because Canvas uses a
    2025-02-01