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 style dynamically set table height

    js style dynamically set table height

    Isn't it enough to just set it in the table tag? This is static, if you want to set it dynamically, would you? function com_onresize(){var contentsHeight = document.body.clientHeight;var buttons
    2025-04-07
  • Related contents of search switch in Taobao TAB switch search box

    Related contents of search switch in Taobao TAB switch search box

    A imitation Taobao TAB switch search box. Switch to whichever content you want to search. Interested friends can check out the code below.<div><div id="searchBox"><ul id="tabBar"><li tips="请输入产品名称"> commodity</li><li>
    2025-04-07
  • HTML table markup tutorial (7): Background color attribute BGCOLOR

    HTML table markup tutorial (7): Background color attribute BGCOLOR

    Through the BGCOLOR attribute, the background color of the table can be set. Basic syntax<TABLE BGCOLORr=color_VALUE> When defining colors, you can use English color names or hexadecimal color values ​​to express them. File example: 10-7.htm Set the color
    2025-04-07
  • Introduction to Web Storage Application of HTML5 Local Storage

    Introduction to Web Storage Application of HTML5 Local Storage

    Web Storage is a very important function introduced by HTML5. It can store data locally on the client side. It is similar to HTML4 cookies, but it can implement functions much more powerful than cookies. The size of the cookie is limited to 4KB. Web Stora
    2025-04-07
  • Implementing the most efficient array out-of-order method in JavaScript

    Implementing the most efficient array out-of-order method in JavaScript

    The inscheduled array means to disrupt the order of all elements in the array. A common method is to pass a function to the native sort method of the array, which randomly returns 1 or -1 to achieve the purpose of randomly arranging array elements. Copy t
    2025-04-07
  • Egret Engine Development Guide Running Project

    Egret Engine Development Guide Running Project

    This is an exciting summary, because in this summary you can finally see the running effect of your first demo. 1. Use the Egret tool to run the game and run the Egret project. We need a running HTTP server. In the previous tutorial on installing Egret, w
    2025-04-07
  • Solution to the trim function that cannot be used in javascript in IE

    Solution to the trim function that cannot be used in javascript in IE

    This article analyzes the solution that JavaScript cannot use trim function under IE, which has certain reference value for the design of the front part of the web. The specific analysis is as follows: First, there is no problem using the javascript trim
    2025-04-07
  • XHTML Introduction Learning Tutorial: XHTML Web Page Picture Application

    XHTML Introduction Learning Tutorial: XHTML Web Page Picture Application

    Adding pictures reasonably can make a web page more beautiful. Picture tags<img><img> Tags are used to insert pictures on web pages.<img> The tag has an important attribute src, and its attribute value is the address of the image. Let's insert a pictu
    2025-04-07
  • Introduction to several ways of js file

    Introduction to several ways of js file

    1. The copy code is directly referenced on the page as follows: <script src="a.js"><//script><script src="b.js"><//script>2.动态写入页面复制代码代码如下:document.write('<script sr
    2025-04-07
  • Default style sheet - Default style list for HTML4 tags

    Default style sheet - Default style list for HTML4 tags

    This appendix is informative, not normative.This style sheet describes the typical formatting of all HTML 4 ([HTML4]) el
    2025-04-07
  • In-depth understanding of javascript prototype chain and inheritance

    In-depth understanding of javascript prototype chain and inheritance

    In the previous article, the concept of prototype was introduced and we learned about the relationship between the three good friends of constructor, prototype object, and instance in JavaScript: each constructor has a "guardian" - the prototype
    2025-04-07
  • JavaScript design pattern singleton pattern example

    JavaScript design pattern singleton pattern example

    Peter Seibel, author of Practical Common Lisp, once said that if you need a pattern, something must be wrong. The problem he mentioned refers to the need to seek and summarize a general solution because of the inherent flaws of language. Whether it is a w
    2025-04-07
  • JS picture real-time loading provides web page opening speed

    JS picture real-time loading provides web page opening speed

    Browse large websites, especially pictures with more pictures, such as large e-commerce websites. You will find that the first screen is outside the first screen. The pictures are loaded when scrolling down. There is no need to load all the pictures at th
    2025-04-07
  • HTML5 SVG 2D Introduction 9 - Introduction and Application of Masks and Mask Elements

    HTML5 SVG 2D Introduction 9 - Introduction and Application of Masks and Mask Elements

    The mask SVG supported by SVG supports a variety of mask effects. Using these features, we can create many dazzling effects. As for whether mask is called mask or mask in Chinese, it is not differentiated. It is called mask here. The types of masks suppor
    2025-04-07
  • Example of using text method to get text information of HTML elements

    Example of using text method to get text information of HTML elements

    There are many ways to obtain text information. In this example, we use the text method of jquery. I believe everyone has used this method, it is simple and practical. After obtaining and using alert to pop up the text, the following is the implementation
    2025-04-07