When I was working on a phased project in college, I encountered a very strange phenomenon: kindEditor's function of uploading images failed, but it worked just fine after removing the styles referenced by jsp. This indicated that there was a problem with the styles, so I deleted a style and tested it. , so the culprit falls on zoom. This is the first time we "met each other". Today is the weekend, a rare leisure time. Let me summarize it now:
First, let’s talk about the role of zoom: zoom is used to set objects. Zoom attribute value: normal |
Code 1-1 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:normal;} </style> <h1 id="zoom">zoom</h1> <h1 id="zoom">zoom</h1> <h1 id="zoom">zoom</h1>Figure 1-1
Code 1-2 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:normal;} </style> <img src="/static/imghwm/default1.png" data-src="./test.png" class="lazy" style="max-width:90%" style="max-width:90%" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" ><br> <img src="/static/imghwm/default1.png" data-src="./test.png" class="lazy" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" ><br> <img class="test lazy" src="/static/imghwm/default1.png" data-src="./test.png" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" >
Figure 1-2
Summary:
a. Figure 1-1: As can be seen from the code The font size of the first "zoom" is "5pt", the font size of the second "zoom" uses the default value, and the font size of the third "zoom" is added to the "zoom:normal;" style list;
b. Figure 1-2 From the code, you can see that the width of the first image is "50", the height is also "50" and the size is "5pt". The second image size uses the default value. The "zoom:normal;" style list has been added to the three pictures;
Through the description of points a and b, we can get the conclusion: n normal is used to make the element use its actual size;
2.
Code 2-1 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:3;} </style> <h1 id="zoom">zoom</h1> <h1 id="zoom">zoom</h1>
Figure 2-1
Code 2-2 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:3;} </style> <img src="/static/imghwm/default1.png" data-src="./test.png" class="lazy" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" ><br> <img class="test lazy" src="/static/imghwm/default1.png" data-src="./test.png" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" >
Figure 2-2
3.
Code 3-1 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:300%;} </style> <h1 id="zoom">zoom</h1> <h1 id="zoom">zoom</h1>
Figure 3-1
Code 3-2 is as follows:
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <style type="text/css"> .test{zoom:300%;} </style> <img src="/static/imghwm/default1.png" data-src="./test.png" class="lazy" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" ><br> <img class="test lazy" src="/static/imghwm/default1.png" data-src="./test.png" alt="HTML CSS??zoom learning_html/css_WEB-ITnose" >
Fig. 3-2
Note: Due to the defect of zoom compatibility, there are not many actual applications. Just a general understanding is enough.
【0 points to download demo resources】

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
