【代码笔记】Web-CSS-CSS Float(浮动)

一, 效果图。

【代码笔记】Web-CSS-CSS Float(浮动)_第1张图片

二,代码。

复制代码





    
    CSS 浮动
    



    

In the paragraph below, we have added an image with style float:right. The result is that the image will float to the right in the paragraph.

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Image Gallery

Try resizing the window to see what happens when the images does not have enough room.

Image Gallery

Try resizing the window to see what happens when the images does not have enough room.

Second row

复制代码

 

参考资料:《菜鸟教程》

 

你可能感兴趣的:(Web-代码笔记)