简体   繁体   English

<li>元素不可点击

[英]<li> element not clickable

I have this http://jsfiddle.net/wfhmtx8c/ so it works in jsfiddle? 我有这个http://jsfiddle.net/wfhmtx8c/,所以它可以在jsfiddle中使用?

 #nav { width: 100%; float: left; margin: 0 0 3em 0; padding: 0; opacity: 0.8; list-style: none; background-color: #f2f2f2; border-bottom: 1px solid #ccc; border-top: 1px solid #ccc; } #nav li { float: left; } #nav li a { display: block; padding: 8px 15px; text-decoration: none; font-weight: bold; color: #069; border-right: 1px solid #ccc; } #nav li a:hover { color: #c00; background-color: #fff; border-bottom: black; } 
 <ul id="nav"> <li><a href="#">Taal/Languague:</a></li> <li><a href="#">Nederlands</a></li> <li><a href="#">English</a></li> </ul> 

But when I put it on my website: http://ub3rhd.nl it doesn't work? 但是,当我将其放在我的网站: http : //ub3rhd.nl上时,它不起作用吗?

The code is really the same? 代码真的一样吗?

Your page is working perfectly fine for me. 您的专页对我来说一切正常。 On hover, it changes color, and on click it redirects me to #. 悬停时,它会更改颜色,单击时它会将我重定向到#。

Also, opacity on elements containing text is not exactly appealing. 同样,包含文本的元素的不透明度也不是很吸引人。 If i were you, i would get the opacity back at 100%. 如果我是您,我将使不透明度恢复到100%。 Language is spelled wrong, too. 语言也拼写错误。 (: Good luck! (: 祝好运!

They seem to work, but the style isn't as the one in the jsfiddle. 它们似乎可以工作,但是样式不像jsfiddle那样。

Edit: They look fine now. 编辑:现在看起来不错。

Also, as another user said, the transparency on the menu-bar doesn't look good. 另外,正如另一个用户所说,菜单栏上的透明度不太好。 :) :)

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

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