Place the internal adapter in hand, that is, the css style:
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style> /*全局适配器{外边距:0; 内边距:0}*/ *{ margin: 0px; padding: 0px} /*标签适配器{宽度 高度 居中显示}*/ body{width: 1024px; height: 100%; margin: 0 auto} /*“Baidu图片”*/ /*ID适配器{宽度 高度 居中显示 内边距:上 右 下 左*/ #title{width: 220px; height: 80px; margin: 0 auto; padding: 100px 0 50px 0} /*输入框整体样式*/ /*nav适配{ 宽 高 居中显示 背景颜色: 白色}*/ #nav{width: 430px; height: 35px; margin: 0 auto; background-color: white; } /*输入框*/ /*nav适配下的input标签{宽 高 边框:0 浮动:左 动画持续时间:0.4s}*/ #nav input{width: 300px; height: 35px; border: 0px; float: left; transition:All 0.4s ease-in-out;} /*nav适配下的input标签:滑动效果{放大1.5倍}*/ #nav input:hover{transform: scale(1.5)} /*nav适配下的img标签{宽 高 浮动:左 外边距:上下 左右 动画持续时间:0.4s}*/ #nav img{width: 20px;height: 20px; float: left; margin: 7px 5px; transition:All 0.4s ease-in-out;} /*nav适配下的img标签:滑动效果{放大1.2倍)}*/ #nav img:hover{transform: scale(1.2)} /*“百度一下按钮”{宽 高 颜色 背景颜色:浅蓝色 浮动:右 左右居中 上下居中 动画持续时间:0.4s}*/ #baidu{width: 100px; height: 35px; color: white; background-color: dodgerblue; float: right; text-align: center; line-height: 35px; transition:All 0.4s ease-in-out;} /*“百度一下按钮”滑动效果{放大2倍 颜色}*/ #baidu:hover{transform: scale(2); color: red} /*十张图片放在一个p中*/ /*p的适配{ 宽 定位:相对 距离左边的宽度 距离上边的宽度}*/ #main{ width: 780px; position: relative; left: 130px; top: 50px} /*要实现的图片滑动小效果*/ /*class适配器{动画持续时间:1s}*/ .img1{ transition:All 1s ease-in-out;} /*class适配器滑动效果{旋转(360度)} 顺时针方向*/ .img1:hover{transform: rotate(360deg)} /*class适配器{动画持续时间:1s}*/ .img2{ transition:All 1s ease-in-out;} /*class适配器滑动效果{旋转(360度)} 逆时针方向*/ .img2:hover{transform: rotate(-360deg)} /*class适配器{动画持续时间:1s}*/ .img3{ transition:All 1s ease-in-out;} /*class适配器滑动效果{放大1.5倍}*/ .img3:hover{transform: scale(1.5)} /*class适配器{动画持续时间:1s}*/ .img4{ transition:All 1s ease-in-out;} /*class适配器滑动效果{倾斜50度} 顺时针方向*/ .img4:hover{transform: skew(-50deg)} </style></head>
Place the content to be displayed on the page in body:
<!--/*背景图片*/--><body background="20120921215232_Ay5mx.jpeg"> <!--/*“Baidu知道”图片*/--> <p id="title"><img src="/static/imghwm/default1.png" data-src="title.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" ></p> <p id="nav"> <p id="float"> <!--/*文本框*/--> <input type="text"> <!--/*相机图片*/--> <img src="/static/imghwm/default1.png" data-src="xiangji.jpg" class="lazy" alt="Use HTML+CSS to achieve animation effects" > </p> <!--/*百度一下按钮*/--> <p class="float" id="baidu" >百度一下</p> </p> <!--/*十张小图片*/--> <p id="main"> <!--/*第一行五张图片*/--> <p> <img class="img1 lazy" src="/static/imghwm/default1.png" data-src="img1-1.jpg" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img1-2.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img1-3.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img1-4.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img1-5.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > </p> <!--/*第二行五张图片*/--> <p> <img class="img2 lazy" src="/static/imghwm/default1.png" data-src="img2-1.jpg" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img2-2.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > <img class="img3 lazy" src="/static/imghwm/default1.png" data-src="img2-3.jpg" / alt="Use HTML+CSS to achieve animation effects" > <img class="img4 lazy" src="/static/imghwm/default1.png" data-src="img2-4.jpg" / alt="Use HTML+CSS to achieve animation effects" > <img src="/static/imghwm/default1.png" data-src="img2-5.jpg" class="lazy" / alt="Use HTML+CSS to achieve animation effects" > </p> </p></body></html>
Interface renderings:
The above is the detailed content of Use HTML+CSS to achieve animation effects. For more information, please follow other related articles on the PHP Chinese website!

JavaScript is widely used in websites, mobile applications, desktop applications and server-side programming. 1) In website development, JavaScript operates DOM together with HTML and CSS to achieve dynamic effects and supports frameworks such as jQuery and React. 2) Through ReactNative and Ionic, JavaScript is used to develop cross-platform mobile applications. 3) The Electron framework enables JavaScript to build desktop applications. 4) Node.js allows JavaScript to run on the server side and supports high concurrent requests.

Python is more suitable for data science and automation, while JavaScript is more suitable for front-end and full-stack development. 1. Python performs well in data science and machine learning, using libraries such as NumPy and Pandas for data processing and modeling. 2. Python is concise and efficient in automation and scripting. 3. JavaScript is indispensable in front-end development and is used to build dynamic web pages and single-page applications. 4. JavaScript plays a role in back-end development through Node.js and supports full-stack development.

C and C play a vital role in the JavaScript engine, mainly used to implement interpreters and JIT compilers. 1) C is used to parse JavaScript source code and generate an abstract syntax tree. 2) C is responsible for generating and executing bytecode. 3) C implements the JIT compiler, optimizes and compiles hot-spot code at runtime, and significantly improves the execution efficiency of JavaScript.

JavaScript's application in the real world includes front-end and back-end development. 1) Display front-end applications by building a TODO list application, involving DOM operations and event processing. 2) Build RESTfulAPI through Node.js and Express to demonstrate back-end applications.

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.


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

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

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.

Zend Studio 13.0.1
Powerful PHP integrated development environment

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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.