The final result is like this, isn’t it cute… PS: It’s best if you have some knowledge of HTML and CSS, but it doesn’t matter if you are a newbie, it’s also okay for a newbie to meet a “newbie”! 1. Preparation Go to the /home/shiyanlou/ directory and create a new blank document: Name it Baymax.html (other names are OK, but the suffix must be .html): Use gedit to open and prepare to edit the code: 2. Write HTML Fill in the following code: XML/HTML CodeCopy content to clipboard
3. Add CSS styles We have used HTML to define the various elements of "Dabai". Now we need to use CSS to draw its style appearance. Since "Dabai" is white, we set the background to a dark color for easier identification. Then first the head: CSS CodeCopy content to clipboard
Effect preview: Let’s add the eyes and mouth! CSS CodeCopy content to clipboard
A mini "Dabai" takes shape: Next up is the torso and abdomen: CSS CodeCopy content to clipboard
Give "Dabai" a heart that symbolizes life: CSS CodeCopy content to clipboard
Now the "Dabai" looks like this: There are no hands or feet yet, so cute... "Dabai" needs a warm arm: CSS CodeCopy content to clipboard
No fingers yet: CSS CodeCopy content to clipboard
A bit interesting: Can’t wait to add legs to “Dabai”? CSS CodeCopy content to clipboard
duang~ duang~ duang~ Stunt completed! Your sweetheart Dabai is here by your side, don’t you feel safe? |
>>: Solution to web page confusion caused by web page FOUC problem
Table of contents background What is the Metavers...
1. Command Introduction nl (Number of Lines) adds...
The problems and solutions encountered when deplo...
The earliest computers could only use ASCII chara...
The following code introduces MySQL to update som...
Table of contents getting Started Data storage Co...
We all know that Jmeter provides native result vi...
This article uses an example to describe how MySQ...
It is too troublesome to find the installation tu...
Table of contents Preliminary Notes Problem Repro...
mistake The following error occurs when connectin...
This article introduces how to configure Nginx to...
The first parameter passing method is dynamic rou...
Find the problem I recently encountered a problem...
login.html part: <!DOCTYPE html> <html l...