jsfiddle 不显示我的 css

发布于 2024-12-23 12:19:18 字数 214 浏览 3 评论 0原文

我是第一次使用 jsfiddle,它似乎无法识别 css 样式。它也不显示标签内的元素。

这是保存的 jsfiddle 页面: http://jsfiddle.net/s5LXc/

有什么我可以做的吗?在那里做错了以获得我所做的意想不到的结果吗?

谢谢!

I am using jsfiddle for the first time, and it doesn't seem to recognize the css styles. It also does not display the elements withing the tag.

Here is the saved jsfiddle page for it: http://jsfiddle.net/s5LXc/

Is there anything that I did wrong there to get the unexpected result that I did?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

高跟鞋的旋律 2024-12-30 12:19:18

检查这个工作小提琴: http://jsfiddle.net/s5LXc/2/

你错过了你的最外层类为“nav_bar”的 DIV 容器。

您的 HTML 结构至少在一个地方也存在格式错误,例如(倒置的 SPANFORM 标记):

<form name="form" method="post" id="header_search">


<span style='text-align: center; float: left;'>Search
    <input type="text" size="10" id="search_string">
    <input type="submit" value="Search"></input>
</form>

</span> 

Check this working fiddle: http://jsfiddle.net/s5LXc/2/

You were missing your outermost DIV container with a class of "nav_bar".

Your HTML structure is also malformed in at least one place, such as (inverted SPAN and FORM tags):

<form name="form" method="post" id="header_search">


<span style='text-align: center; float: left;'>Search
    <input type="text" size="10" id="search_string">
    <input type="submit" value="Search"></input>
</form>

</span> 
巷子口的你 2024-12-30 12:19:18

您显示了“nav_bar”类,但您的 html 中没有这样的东西。

You show a class of 'nav_bar' but there is no such thing in your html.

四叶草在未来唯美盛开 2024-12-30 12:19:18

您在导航容器中使用了错误的类。

<div class="nav">

而不是

<div class="nav_bar">

You're using the wrong class in your nav container.

<div class="nav">

Instead of

<div class="nav_bar">
月下凄凉 2024-12-30 12:19:18

有一点是肯定的:您在 CSS 中多次引用 nav_bar 类,但它根本不会出现在您的 html 中。

One thing's for sure: you reference the class nav_bar a lot in your css, but it doesn't appear in your html at all.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文