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
  • JavaScript 32-bit integer unsigned operation example

    JavaScript 32-bit integer unsigned operation example

    In JavaScript, all integer variables are signed integers by default. What does this mean? Signed integers use 31 bits to represent the value of the integer, and bit 32 to represent the sign of the integer. 0 represents a positive number, and 1 represents
    2025-01-16
  • How to achieve the carousel effect of big in the middle and small in the middle with html5+css

    How to achieve the carousel effect of big in the middle and small in the middle with html5+css

    According to international practice, the effect is best if you go on first. Don’t say much, just go on and masturbate. css:<style> *{margin: 0;padding: 0} .wrap{ } .container{ width: 100%;
    2025-01-16
  • js quick sort implementation code

    js quick sort implementation code

    However, there are many books that do not explain it very clearly, and different teaching materials have different implementation methods. I will write down the simplest quick sorting idea here for your reference. I hope that no matter what language you u
    2025-01-16
  • Example of how to implement a 2-column layout in HTML (fixed width on the left, adaptive on the right)

    Example of how to implement a 2-column layout in HTML (fixed width on the left, adaptive on the right)

    HTML implements a 2-column layout, with a fixed width on the left side and an adaptive implementation on the right side:<style> body, html{padding:0; margin:0;} // 根据CSS定位,利用浮动或绝对定位,使左侧的块元素脱离常规文档流,可以与右边块元素并列
    2025-01-16
  • Example of how canvas implements Tetris

    Example of how canvas implements Tetris

    I haven’t used canvas for a long time, so I became familiar with canvas again by writing a small game Tetris. If you have a certain canvas foundation, it is not difficult to implement. Detailed explanation of the principle. Looking at the final interface
    2025-01-16
  • Add powerful Web 2.0 features to WordPress

    Add powerful Web 2.0 features to WordPress

    The recently discovered WordPress plug-in Lifestream can achieve a function similar to Friendfeed, displaying dynamic integrations from the many Web2.0 services you use into WordPress. Lifestream supports quite a few Web2.0 services by default
    2025-01-16
  • In-depth understanding of the use of HTML5 timer requestAnimationFrame

    In-depth understanding of the use of HTML5 timer requestAnimationFrame

    Preface Timers have always been the core technology of JavaScript animation. The key to writing an animation loop is to know how long the delay time is. On the one hand, the loop interval must be short enough to make different animation effects appear smo
    2025-01-16
  • Hand-in-hand, I will teach you how to draw a simple poster using canvas.

    Hand-in-hand, I will teach you how to draw a simple poster using canvas.

    La la la, let’s talk about the requirements first. The product wants users to share a picture to WeChat, QQ and other platforms within our app. The image contains the user's name, avatar, and a QR code with their own information. Then, how to generate
    2025-01-16
  • IE9: Why Acid3 doesn't matter

    IE9: Why Acid3 doesn't matter

    The development direction of Microsoft IE9 is very clear, supporting HTML5 and supporting standards. At this week's MIX10, IE project manager Dean Hachamovitch said so. In the development of IE9, Microsoft began to focus on real-world needs. They moni
    2025-01-16
  • 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