Application of CSS rem and em

target    Achieve different font sizes in the same panel as shown in the figure.   realization Implementation using px Usually, a fixed font size may be specified separately, and the code may be as follows: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible ...

Posted by craigtolputt on Sat, 16 Apr 2022 01:56:22 +0300

vue basic syntax

1. Interpolation expression {{ ,,, }} Variable names and objects can be written in braces Properties, etc., and js statements can also be written 2. Variables are displayed on the interface v-text: v-html: The difference between the two is that v-text treats the content as plain text, and v-html treats the HTML tag as HTML code For exa ...

Posted by richierich on Fri, 15 Apr 2022 19:28:45 +0300

Introduction to Web APIs, DOM tree, case: imitating JD to display the password, get getElementsByTagName through the new method in HTML5, add the method of getting elements in H5, operate elements, and change the content of operation elements

Introduction to Web APIs 1. Basic relevance between web APIs and JS 1.1 composition of JS ECMAScript,JS syntax, DOM page document object model, BOM browser object model 1.2 JS foundation stage and Web APIs stage JS basic stage We are learning the basic syntax specified in ECMAScript standard Students are required to master the basic gramma ...

Posted by coco777 on Fri, 15 Apr 2022 08:44:41 +0300

Shandong University Project Training -- network request encapsulation supplement

preface Before that, the author wrote a blog about network request encapsulation, but at that time, he wrote about the encapsulation results rather than the encapsulation process, so he made a supplementary introduction to the encapsulation process on this blog. uni. Use of request At the beginning, the author was not used to reading the ...

Posted by cbj4074 on Thu, 14 Apr 2022 19:52:18 +0300

Scripting language [basic JavaScript] javascript object, function context and constructor

object There are two kinds of objects in js. Objects in js can dynamically add attributes and methods through point syntax. Narrow object Represented by {}; Narrow objects can have many properties and methods If the property value on the right is function, it is method. The no side is called an attribute. var obj = { ...

Posted by agriz on Thu, 14 Apr 2022 04:17:21 +0300

Add form item in form, CSS

Form definition: submit local data information such as user information to the server, such as Baidu search box registration and login. These operations need to fill in forms 1, Create form label Attribute: action attribute (must be written) It refers to the address of a server. When we submit the form, we will submit it to the address corre ...

Posted by ridckie_rich on Wed, 13 Apr 2022 05:27:51 +0300

CSS commonly used grammar summary [essence]

CSS common syntax summary Reference mode Annotation method: / **/ Case insensitive in CSS, variable naming uses - to split Internal style Through the style tag, embed the CSS code into the HTML, and use the selector {} <style> p { color: rgb(156, 163, 53); font-size: 30px; } &lt ...

Posted by maxpup979 on Tue, 12 Apr 2022 23:15:00 +0300

Write a clock quickly using animation and transform,

There is not much CSS code. CSS style is not introduced here. CSS style is written in style div class name line represents the scale line in the watch, center represents the circle in the middle that blocks the redundant line, second second second hand, minute minute hand, hour hour hour, and origin represents the point in the center of the ci ...

Posted by opido on Tue, 12 Apr 2022 21:52:10 +0300

Practical training - Using HTML+CSS to make responsive project web pages

catalogue Project introduction Project framework process 1. Navigation 2. Navigation responsive design 3. Login 4. Login responsive design 5. New course express and responsive design 6. Popular course list and responsive design 7. Popular labels summary Project introduction This time we learn a new web design method, responsive ...

Posted by Fahid on Sun, 10 Apr 2022 03:09:43 +0300

Four methods of JS type judgment and their points for attention

Basic types: String, Number, Boolean, Symbol, Undefined, Null Reference type: Object (in addition to Object, reference types also include Function, Array, RegExp, Date, etc.) Since ECMAScript is loosely typed, there needs to be a means to detect the data type of a given variable. JavaScript also provides a variety of methods for this probl ...

Posted by gusaps on Sat, 09 Apr 2022 16:57:58 +0300