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
1: Install SVN yum install -y subversion 2. Creat...
Connection query: It is the result of connecting ...
Check if MySQL is already installed in Linux sudo...
The previous article was a simple review of the B...
Problem Description Install nginx on Tencent Clou...
Step 1: Use Notepad to open the "my.ini"...
Introduction: Lambda Probe (formerly known as Tom...
Preface In the process of managing and maintainin...
Select and change: click to display the current v...
I encountered several problems when installing My...
Specific method: 1. Open Command Prompt 2. Enter ...
Pseudo-arrays and arrays In JavaScript, except fo...
Table of contents 1. The writing order of a compl...
1. Install MySQL This article is installed via AP...
Table of contents Preface Target first step: Step...