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
  • DIV+CSS commonly used Html web page layout code

    DIV+CSS commonly used Html web page layout code

    A single line and a column. The following is a reference fragment: body { margin: 0px; padding: 0px; text-align: center; }
    2025-01-16
  • Canvas globalCompositeOperation

    Canvas globalCompositeOperation

    By default, if an object (source) is drawn on top of another object (target) in Canvas, the browser will simply overlay the image of the source object on top of the image of the target object. To put it simply, in Canvas, the image source and target image
    2025-01-16
  • Implementation code for cloning an array in Javascript

    Implementation code for cloning an array in Javascript

    A JS interview question from a company in 2008. The position was a JavaScript engineer (going to Google). The interviewer asked me how to clone an array. At that time, I thought about it. The Object of js does not have a clone method, but the Object of ja
    2025-01-16
  • A brief analysis of the priority of identifiers with the same name in JavaScript

    A brief analysis of the priority of identifiers with the same name in JavaScript

    1. Local variables are used first and then declared, which does not affect the external variables with the same name. The code is as follows: var x = 1; // --> external variable x function fn(){ alert(x); // --> undefined local variable x first uses
    2025-01-16
  • Html5 calls the mobile phone camera and implements face recognition

    Html5 calls the mobile phone camera and implements face recognition

    It requires hybrid App development, native shell + webApp, which calls the native camera function in the web part and displays the camera content in the designated area of ​​the web page. At the same time, you can manually take photos and perform face rec
    2025-01-16
  • Add X-UA-Compatible meta to cope with IE8

    Add X-UA-Compatible meta to cope with IE8

    X-UA-Compatible is a new setting for ie8. It is not recognized by browsers other than ie8. This difference is the same as content=”IE=7″, regardless of whether the page contains<!DOCTYPE> instruction,
    2025-01-16
  • Browser-specific CSS Hack: Differentiate between different browsers

    Browser-specific CSS Hack: Differentiate between different browsers

    CSS Hack is a remedy that is used when standard CSS is not compatible with the display effects of various browsers. Until browser manufacturers reach an agreement on how to parse CSS, we can only use this method to complete such tasks. You may be able to
    2025-01-16
  • How to use css to define automatic line wrapping of tables to avoid stretching

    How to use css to define automatic line wrapping of tables to avoid stretching

    style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word"
    2025-01-16
  • Manuals and specifications

    Manuals and specifications

    This book is a tutorial. It aims to help you gradually learn the language. But once you’re familiar with the basics, you’ll need other resources.
    2025-01-16
  • CSS allows web text to be automatically hidden

    CSS allows web text to be automatically hidden

    Text hiding is widely used, but the commonly used methods have little affinity. Defects of commonly used text hiding methods:
    2025-01-16
  • Regular expression restricts the text box to only input numbers

    Regular expression restricts the text box to only input numbers

    Many times we need to limit the type of input content in the text box when making forms. Below we use regular expressions to limit the text box to only input numbers, decimal points, English letters, Chinese characters and other codes.
    2025-01-16
  • The most concise and short JavaScript judgment IE browser

    The most concise and short JavaScript judgment IE browser

    No matter what version of IE browser it is, it is always somewhat incompatible with Web standards. For code workers, it is naturally miserable. In order to consider the compatibility issue of IE, whether writing CSS or JS, IE is often treated specially, w
    2025-01-16
  • CSS hack compatible with IE6/IE7/IE8/FireFox

    CSS hack compatible with IE6/IE7/IE8/FireFox

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2025-01-16
  • Code editors

    Code editors

    A code editor is the place where programmers spend most of their time. There are
    2025-01-16
  • Web page production: solve text wrapping in pre tags

    Web page production: solve text wrapping in pre tags

    it is known<pre> Tags define preformatted text, and a common application is to represent computer source code. Text enclosed in a pre element usually preserves spaces and newlines, but unfortunately, when you<pre> When writing code in a tag, if you do not
    2025-01-15