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
Have you ever encountered a situation where we hav...
Table of contents Common functions of linux drive...
Table of contents In JavaScript , there are sever...
Origin of the problem When using docker, I unfort...
Preface: The group by function retrieves the firs...
In MySQL operation and maintenance, a R&D col...
Earlier, we used Docker to simply deploy the Spri...
I used the Mysql FIND_IN_SET function in a projec...
As shown below: XML/HTML CodeCopy content to clip...
Public free STUN servers When the SIP terminal us...
Promise is a new solution for asynchronous progra...
Building new images from existing images is done ...
Maybe everyone knows that js execution will block...
Table of contents 1. Install Docker 2. Install Gi...
This tutorial explains how to verify the IP addre...