文字相对于图片位置
2012-04-14 16:43
204 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/> <title>文字相对于图像的位置</title> <style type="text/css"> <!-- /*设置文字显示在图片的上边*/ img.top { vertical-align: text-top; } /*设置文字显示在图像的下方*/ img.bottom { vertical-align: text-bottom; } --> </style> </head> <body> <p>这幅图<img class="top" src="photo/css91.gif"/>在上面显示</p> <p>这幅图<img class="bottom" src="photo/css91.gif"/>在下面显示</p> </body> </html>
相关文章推荐
- 图片和文字保持相对位置不变以及background属性
- UIButton的图片和文字相对位置调整
- UIEdgeInsetsMake设置UIButton的图片、文字的相对位置
- Android开发中如何改变RadioButton背景图片和文字的相对位置(转)
- UIButton的图片和文字相对位置调整
- Android RadioButton背景图片和文字的相对位置
- 图片放大缩小并且文字与图片相对位置不变
- 文字印入图片位置计算
- Android:图片中叠加文字,支持拖动改变位置
- Swift - 给图片添加文字水印(图片上写文字,并可设置位置和样式)
- iOS Button 上文字图片位置的设置
- ios代码调整button图片image文字title位置
- POI在指定位置插入文字表格图片
- ios中交换button的图片和文字的位置
- Android手动设置文字和图片的位置
- iOS UIButton 自定义图片和文字位置详解
- setIconImage的相对位置图片和绝对位置图片的写法
- 自定义UIButton上的文字和图片位置
- iOS UIButton 图片文字左右互移 位置对调 解决方案
- 改变UIButton 图片和文字的位置