Home  >  Article  >  Web Front-end  >  不知道这个网页语言问题在哪里。想学习下。。求请教!_html/css_WEB-ITnose

不知道这个网页语言问题在哪里。想学习下。。求请教!_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:48939browse


        
  •  




我只想显示一个就够了,结果显示满了

怎么搞?



回复讨论(解决方案)


        
  • 加上 background-repeat:no-repeat    ;
     <li style="background-image: url(http://fanyi.baidu.com/asset/fanyi-logo.png); padding-bottom: 3px; line-height: 16px; background-color: transparent; list-style-type: none; margin: 0px; padding-left: 10px; padding-right: 10px; background-position: 0% 7px; padding-top: 3px; background-origin: initial; background-clip: initial;background-repeat:no-repeat    ;"> </li></ul>?

    少了一句:background-repeat:no-repeat;
    ====================
    其实你可以合并为一个background属性:
    background:transparent url('http://fanyi.baidu.com/asset/fanyi-logo.png') no-repeat;

    具体参考一下这里 http://www.dreamdu.com/css/property_background/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn