zoukankan      html  css  js  c++  java
  • 【转】用图片做列的背景图片,出现背景图片的重复?

    因为你在<td>中加的图片背景,默认是重复、平铺的,所以你只要在<td>里加多一个Style样式style="background-repeat:no-repeat;"即可,也可以直接复制下面的代码替换你之前的代码 <td width="200"  height="190" style="background-repeat:no-repeat;"  background="images/aa_27.gif" valign="top" style="padding:8px;"><% =getC(2,11) %></td>
    追问
    background-repeat:no-repeat,这个设置过了,还是这样显示的
    回答
    那就这样试下 <td width="200"  height="190" style="background:url(images/aa_27.gif) no-repeat;" valign="top" style="padding:8px;"><% =getC(2,11) %></td>
  • 相关阅读:
    SpringSecurity开发
    SpringBoot 集成Spring Security
    Hexo
    gitbook使用
    Maze
    Party
    A. DZY Loves Chessboard
    1042B. Vitamins
    Petr and a Combination Lock
    433B.Kuriyama Mirai's Stones
  • 原文地址:https://www.cnblogs.com/lzhitian/p/2979637.html
Copyright © 2011-2022 走看看