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 请问为什么我配置IPsec后PC1 ping不通 PC2,抓包出来数据包也并没有被加密
  • ¥200 求博主教我搞定neo4j简易问答系统,有偿
  • ¥15 nginx的使用与作用
  • ¥100 关于#VijeoCitect#的问题,如何解决?(标签-ar|关键词-数据类型)
  • ¥15 一个矿井排水监控系统的plc梯形图,求各程序段都是什么意思
  • ¥50 安卓10如何在没有root权限的情况下设置开机自动启动指定app?
  • ¥15 ats2837 spi2从机的代码
  • ¥200 wsl2 vllm qwen1.5部署问题
  • ¥100 有偿求数字经济对经贸的影响机制的一个数学模型,弄不出来已经快要碎掉了
  • ¥15 数学建模数学建模需要