web-image alignment application (experiment 4)

Remember the code is ok

1. Question requirements
Insert picture description here2. The question analysis is
mainly to look at four images. The first image is the image with no alignment setting, the second chapter is the bottom of the image, the third is the center of the image, and the fourth is the left image. Aligned. At the same time, pay attention to where the image is inserted.
3. Material preparation
Insert picture description here
Go to the Internet and find a picture randomly, and pay attention to the location of the picture.
4. Code writing
Insert picture description here
5. Matters needing attention
1. Pay attention to the position of the picture when writing, whether the relative path or absolute path is used when writing by yourself;
2. When setting the picture position attribute, use the align and align attributes as follows:
Insert picture description here6. Effect picture
Insert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/weixin_45952057/article/details/108660097