Making the text surround the picture
来源:互联网 发布:java 线程池 使用 编辑:程序博客网 时间:2024/06/15 18:49
In this example,it uses the ‘float’ attribute to achieve it;
The float element will on the top of the element that doesn’t float,the tow element will overlap
<!DOCTYPE HTML ><html><head> <title>Title</title> <style> .con{ width: 400px; height: 400px; border: 1px solid black; margin: 100px auto; } .pic{ width: 64px; height: 64px; float: left; margin: 0 5px 5px 0; } .par{ background-color: green; width: 400px; height: 200px; text-indent: 32px; /*when the text's length exceed the length of parent container, the following two lines will make it wraps automatically*/ word-wrap: break-word; word-break: break-all; text-align: left; } </style></head><body><div class="con"> <div class="pic"><img src="../images/01.png"></div> <div class="par">kufweibqbgi3ubhbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkk bbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkk bbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkk bbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkk bbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkk iiiiiiiiiiiiiiiiiiiiiiiiibbbbbbbbbbbbbbbbkkkkkkkkkkktttttttttttkkkkkkk </div></div></body></html>
阅读全文
1 0
- Making the text surround the picture
- 1392 Surround the Trees
- Surround the Trees
- Surround the Trees
- Surround the Trees
- Surround the Trees
- hdu1392-Surround the Trees
- Surround the Trees
- Surround the Trees
- Surround the Trees HDU
- 警告提示:Consider making the text value selectable by specif
- HDU 1392 Surround the Trees
- HDU 1392 Surround the Trees
- zoj 1453 Surround the Trees
- hdu 1392 Surround the Trees
- HDU 1392 Surround the Trees
- HDU 1392 Surround the Trees
- hdu 1392 Surround the Trees
- 运算符与表达式答疑
- C#操作虚拟键盘和鼠标(及禁用物理鼠标)
- Full Tank? POJ
- U3D 发布相关
- CI框架最新加密解密类用法测试
- Making the text surround the picture
- ROC曲线
- SpringBoot整合MyBatis
- sdut 双向链表
- 基于C++全局变量的声明与定义的详解
- CodeForces
- S5PV210开发板刷机(SD卡uboot、串口+USB-OTG刷机方法)
- HDU 1217 Arbitrage(最短路判断负环)
- C++ STL vector 用法详解