日期:2014-05-17  浏览次数:20869 次

在CSS里用什么代替align?
<img   src= "33.jpg "   alt= "logo "   /> index
这样默认的情况下,index是在图片的下方对齐的

<img   src= "33.jpg "   alt= "logo "   align= "left "   /> index
这样index文字就从图片的上方对齐,那么能不用align,在CSS令到文字从图片上方对齐么?

------解决方案--------------------
text-align : left | right | center | justify
------解决方案--------------------
把图片当做背景 background:url(33.jpg) no-repeat top left
------解决方案--------------------
<img src= "33.jpg " alt= "logo " align= "left " /> index

在这里align= "left "不是用来让文字上对齐的,而是相当于float:left。用这个css可以具有相同的效果。
------解决方案--------------------
to ls
你这也算css?

use it.
vertical-align : baseline |sub | super |top |text-top |middle |bottom |text-bottom |length