Wordpress主题复制但在不同的域上显示不同

时间:2012-05-31 18:59:20

标签: javascript css wordpress

我决定将我创建的wordpress设计镜像到另一个域

http://www.global-markets-recruitment.com/

然而,一旦我将代码复制到新域,当移动屏幕而不是移动网站框架时,徽标就会显示在不适当的位置

http://www.keylexconsulting.com/wp/#home

CSS和HTML完全相同,但我不明白为什么会有所不同

/*
Theme Name:     Child
Description:    This is a child theme
Author:         Laura Dawaf
*/

body
{
    font-family: 'Helvetica', Times New Roman, Times, serif;
    font-size: 12px;
    line-height: 180%;
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 auto;
    padding: 0;
    background: #EEEFF1;
    overflow: hidden;
}

p
{
    margin: 0px;
    padding: 0px 0px 15px 0px;
}

a
{
    text-decoration: none;
    color: #5b5b5b;
}

a:focus
{
    outline: none;
}

a:focus,
a:active,
a:hover {
    text-decoration: none;
}


#header {
    width: 1200px;
    height: 110px;
    margin: 0 auto;
    position: relative;
}

#logo {
    font-size: 28px;
}

#logo a {
    display: block;
    width: 200px;
    height: 105px;
    background: url(Assets/logo.png) no-repeat 0px 0px;
    padding-top: 23px;
    padding-left: 5px;
}

.logo-image {
    float: left;
    padding-right: 8px;
    padding-top: 4px;
}

#logo h1
{
    position: absolute;
    top: -50px;
    left: -2000px;
    font-size: 11px;
    color: #FFFFFF;
}

#nav
{
    position: absolute;
    right: 0px;
    bottom: 1px;
    width: 850px;
}

#nav ul
{
    list-style: none;
    margin: 0px;
    padding: 0px;
}

#nav li
{
    float: right;
    padding: 30px 34px 10px 34px;
    height: 20px;
    margin: 0px;
    background: url(Assets/Nav/navSplitLine.gif) no-repeat right top;
}

#nav li.end
{
    float: right;
    padding: 30px 34px 10px 34px;
    height: 20px;
    margin: 0px;
    background: none;
}

#nav li a#navHome
{
    display: block;
    width: 46px;
    height: 20px;
    background: url(Assets/Nav/home.png) no-repeat 0px 0px;
    overflow: hidden;
}


#nav li a#navHome:hover
{
    background-position: 0px -20px;
}

#nav li a#navArtScience
{
    display: block;
    width: 130px;
    height: 20px;
    background: url(Assets/Nav/artScience.png) no-repeat 0px 0px;
    overflow: hidden;
}

#nav li a#navArtScience:hover
{
    background-position: 0px -20px;
}

#nav li a#navContext
{
    display: block;
    width: 250px;
    height: 20px;
    background: url(Assets/Nav/context.png) no-repeat 0px 0px;
    overflow: hidden;
}

#nav li a#navContext:hover
{
    background-position: 0px -20px;
}

#nav li a#navContact
{
    display: block;
    width: 65px;
    height: 20px;
    background: url(Assets/Nav/contact.png) no-repeat 0px 0px;
    overflow: hidden;
}

#nav li a#navContact:hover
{
    background-position: 0px -20px;
}


#footerContainer
{
    float: left;
    width: 100%;
    height: 95px;
    margin: 550px 0px 0px 0px;
    background: url(Assets/footerBg.png) repeat-x 0px 0px;
}

#footer
{
    width: 1200px;
    margin: 0 auto;
    position: relative;
    font-family: 'Helvetica', Arial, sans-serif;
    color: #FFFFFF;
    font-size: 11px;
}

#footerNav {
    position: relative;
    float:right;
    top: -576px;
}

#footerNav ul
{
    list-style: none;
    margin: 0px;
    padding: 0px;
}

#footerNav li
{
    float: left;
    padding: 0px 6px 0px 11px;
    margin: 0px;
    background: url(Assets/footerSplitLine.png) no-repeat 0px 5px;
}

#footerNav li.start
{
    padding: 0px 8px 0px 0px;
    background: none;
}

#footerNav li a
{
    color: #666666;
    text-decoration: none;
}

#footerNav li a:hover
{
    color: #FFFFFF;
}

#footerStrap
{
    position: absolute;
    right: 0px;
    top: 20px;
}

#footerStrap img
{
    display: block;
    padding: 0px;
    margin: 0px;
}

#footerDetails
{
    position: absolute;
    right: 0px;
    top: 48px;
    line-height: 100%;
}

/* Nav Slider */

#navPointer
{
    position: absolute;
    right: 0px;
    bottom: 1px;
    height: 7px;
    z-index: 1000;
}

#controlContainer
{
    width: 713px;
    padding: 0px;
    margin: 0px;
    position: relative;
}

#pointer
{
    width: 713px;
    height: 7px;
    background: url(Assets/pointer.gif) no-repeat 0px 0px;
}


/* Content Slider */

#contentHolder
{
    position: absolute;
    width: 1200px;
    height: 500px;
    top: 110;
    left: 50%;
    margin: 0 0 0 -600px;
}

#contentShadow
{
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    width: 1200px;
    height: 550px;
    z-index: -10;
    background: url(Assets/bgShadow-trans.png) no-repeat 0px 0px;
}

#contentGallery
{
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    width: 1200px;
    height: 550px;
    z-index: -100;
}

#content {
    width: 1200px;
    height: 550px;
    padding: 0px 0px 0px 0px;
    overflow: hidden;
    z-index: 500;
}

#contentScroller
{
     width: 100000px;
}

.page
{
    float: left;
    width: 1200px;
    margin: 0px 1200px 0px 0px;
    height: 550px;
}

.pageContent
{
    width: 640px;
    height: 500px;
    margin: 0px 100px 0px 460px;
    padding: 50px 0px 0px 0px;
    background: url(http://www.keylexconsulting.com/wp/wp-content/uploads/pageBg-trans.png) no-repeat 0px 0px;
}

.closed
{
    display: none;
}

.headerText
{
    font-size: 22px;
    margin: 0px;
    padding: 0px 0px 10px 35px;
    font-weight: normal;
    text-transform: uppercase;
    background: url(Assets/dottedLine.gif) no-repeat bottom right;
    color: #4484A9;
}

.pageText
{
    width: 560px;
    min-height: 385px;
    padding: 25px 35px 0px 35px;
    color: #5B5B5B;
}

h2
{
    font-size: 22px;
    margin: 0px;
    padding: 10px 0px 5px 0px;
    font-weight: normal;
}

h3
{
    font-size: 17px;
    margin: 0px;
    padding: 10px 0px 15px 0px;
    font-weight: normal;
}

h3 a
{
    color: #FBB034;
}

h3 a:hover
{
    color: #5B5B5B;
}

.homeContent
{
    width: 424px;
    height: 470px;
    margin: 0px 100px 0px 680px;
    padding: 80px 0px 0px 0px;
    background: url(http://www.keylexconsulting.com/wp/wp-content/uploads/pageBg-trans.png) no-repeat 0px 0px;
}

.homeHeaderText
{
    float: left;
    width: 389px;
    line-height: 100%;
    font-size: 43px;
    margin: 0px 0px 0px 22px;
    padding: 0px 0px 10px 0px;
    font-weight: normal;
    background: url(Assets/dottedLine.gif) no-repeat bottom right;
    color: #4484A9;
    text-align: center;
}

.homeStrap
{
    width: 354px;
    padding: 15px 35px 0px 35px;
}

.homePageText
{
    width: 380px;
    padding: 40px 35px 0px 22px;
    color: #5B5B5B;
}

/* accordian */


a.acc_trigger, a.acc_trigger_2, a.acc_trigger_3
{
    padding: 0px 15px 0px 0px;
    margin: 0px;
    font-size: 14px;
    font-weight: normal;
    background: url(Assets/arrow.gif) no-repeat right 5px;
    line-height: 240%;
    color: #4484A9;
}

a.acc_trigger:hover, a.acc_trigger_2:hover, a.acc_trigger_3:hover
{
    color: #FFFFFF;
}

a.active
{
    background: none;
    padding: 0px;
    color: #5B5B5B;
}

.acc_container, .acc_container_2, .acc_container_3
{
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    font-size: 12px;
    width: 560px;
    clear: both;
}

.acc_container p, .acc_container_2 p, .acc_container_3 p
{
    margin: 0px;
    padding: 0px;
}

a.acc_trigger:hover, a.acc_trigger_2:hover, a.acc_trigger_3:hover {
    color: #4484A9;
}

.seperator
{
    height: 3px;
}

/* classes */

.clear
{
    clear: both;
    margin: 0px;
    padding: 0px;
    width: 0px;
    height: 0px;
    border: none;
}

a.largeArrow
{
    padding: 0px 18px 0px 35px;
    margin: 0px;
    font-size: 16px;
    font-weight: normal;
    background: url(Assets/largeArrow.gif) no-repeat right 4px;
    line-height: 100%;
    color: #FBB034;
    text-transform: uppercase;
}

a.largeArrow:hover
{
    color: #FFFFFF;
}


/* links & tables */

.linkTable
{
    width: 100%;
    margin: 0px;
    padding: 0px;

}

.linkTable td
{
    width: 45%;
}

.hentry, .no-results {
    display: none;
}

#primary {
    display: none;
}

#page {
    background: #EEEFF1;
    margin: 0px;
}

#site-generator {
    background: #EEEFF1;
    padding: 0px;
    font-size: 10px;
    color: #666666;
}

#footerNav li a:hover {
    color: #4484A9;
}

small a {   
    color: #4484A9 !important;
}

#sidebar {  
    display: none;
}

1 个答案:

答案 0 :(得分:0)

在第一个链接上的chrome developer工具中,我看到:

<body class="home blog single-author two-column right-sidebar">

在第二个我看到:

<body class="home page page-id-275 page-template page-template-page-fullwidth-php">

如果模板的应用方式相同,那么两者都不一样吗?