当前位置:编程学习 > html/css >>

css样式-td背景图,水平方向、垂直方向居中

<td  style="background-repeat:no-repeat;width:60%;height:100%;background-position:center;background-image:url('<s:property value="metelogicalDetec.image"/>'););">


  background-image:设置td背景图片

  background-position:center 设置水平垂直方向居中

  background-repeat: no-repeat 不平铺 repeat-x 水平方向居中 repeat-y垂直方向居中

 

补充:web前端 , HTML/CSS  ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,