简体   繁体   English

WordPress的解释style.css不同?

[英]wordpress interpreting style.css differently?

I just went and installed my wordpress theme and it's doing some strange things. 我刚去安装了我的wordpress主题,它正在做一些奇怪的事情。 The problem is with the menu. 问题出在菜单上。 Here's how it should look like (ignore the fact that it's not in English) 这是它的外观(忽略它不是英语的事实)

The code: http://jsfiddle.net/br9LwwLy/ 代码: http//jsfiddle.net/br9LwwLy/

The actual wp site: http://tasmaniandevilz.com/mima/ 实际的wp网站: http : //tasmaniandevilz.com/mima/

As you can see, the bottom border (underline) is not animated and there is a tiny gap under each menu item that is not the actual link - when I hover over that spot, the sub-menu disappears. 如您所见,底部边框(下划线)没有设置动画,并且每个菜单项下都有一个很小的间隙,该间隙不是实际的链接-当我将鼠标悬停在该位置时,子菜单就会消失。 Strangely enough, this is only the problem in Chrome. 奇怪的是,这只是Chrome中的问题。 I have no clue what's going on. 我不知道发生了什么事。 The links are dynamically taken from the pages. 链接是从页面动态获取的。 Here's the header code. 这是标题代码。

<div class='container'>
<header class='clearfix'>
<a href='<?php bloginfo('url'); ?>'><h1>Misia Máriina</h1></a>
<nav>
<ul>
<li>
<a class='bordermenu'><?php wp_list_pages('sort_column=menu_order&depth=2&exclude=359,368,441,439,443,516&title_li='); ?></a>
</li>
</ul>
</nav>
</header>
<img class='sep' src="<?php bloginfo('template_directory'); ?>/img/sep.png" />
</div> 

There is one more error. 还有一个错误。 The special characters are encoded strangely on the home page. 特殊字符在首页上编码异常。 s16.postimg.org/5ohsvb0hh/image.jpg s16.postimg.org/5ohsvb0hh/image.jpg

It's weird that when you click on some of the links, it works alright. 奇怪的是,当您单击某些链接时,它可以正常工作。

s16.postimg.org/5ohsvb0hh/image.jpg s16.postimg.org/5ohsvb0hh/image.jpg

I am guessing there's some problem in the mysql database encoding? 我猜mysql数据库编码中有问题吗? But why is it happening only on the home page? 但是为什么只在主页上发生呢?

On your site, the links <a> does not have class .bordermenu 在您的网站上,链接<a>没有类.bordermenu

About encoding: LINK 1 LINK 2 LINK 3 关于编码: LINK 1 LINK 2 LINK 3

UPDATE: Your <a> still don't have .bordermenu class. 更新:您的<a>仍然没有.bordermenu类。 Check the image: 检查图像: 在此处输入图片说明 And when I'm adding that class manually in dev. 当我在开发人员中手动添加该类时。 tools it works fine: 工作正常的工具: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM