douyan1613 2014-07-01 21:38
浏览 32
已采纳

style css不会影响我使用.php放置的图像

i was puting some company logos in my landing web site which i wantes to use as buttons for the next pages to go in...but first everything was ok. i inserted them through .php and than positioned them in css, and than i tried to make some hover animation and it destroyed it all. than i deleted all the ":hover" codes and everything i added to do that, but now its not as it was. i cant move my pictures to the desired positions. below ill post my .php code and .css as well. please help!!!

<div class="maroonlogo">
    <a href="http://maroon.maroon27.com" target="_blank">
        <img src="http://maroon27.com/wp-content/themes/onesie/images/weblogo.png"/>
    </a>
</div>

<div class="line">
    <img src="http://maroon27.com/wp-content/themes/onesie/images/line.png"/>
</div>

<div class="27logo">
    <a href="http://27.maroon27.com" target="_blank">
        <img src="http://maroon27.com/wp-content/themes/onesie/images/logo.png"/>
    </a>
</div>

CSS

maroonlogo { 
    display: inline; 
    float:right; 
    position:absolute;
    top: 200px;
    left: 350px;
} 

.line {
    display: inline;
    float: right;
    position: absolute;
    top: 180px;
    left: 600px;
} 

.27logo { 
    display: inline;
    float: right; 
    position: absolute; 
    top: 200px; 
    left: 500px; 
}
  • 写回答

2条回答 默认 最新

  • douhuan3448 2014-07-02 12:21
    关注

    Suppose if you can't able to change the classname, still we have solution to apply the style for the class "27logo". You need to use special character "\3" for each number like below.

    .\32\37logo
    {
     background-color:#ff00ff;
     height:200px;
     width:200px;
    } 
    

    DEMO

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?