Jump to content
  • 0

Проблема с display:block внутри табов


sergeyborha
 Share

Question

Вот страница - http://borha.ru/contests/3-mezhregionalnaja-olimpiada-shkolnikov-vysshaja-proba.html

Если открыть через Firebug, то код такой:

<table class="teaser2">

<tbody>
<tr>
<td class="teaser21">
<img src="/upload/000/u1/015/0af7dfcc.jpg">
<div class="content_item_props contests_item_props" style="display: none;">
</td>
<td class="teaser22">
</tr>
</tbody>

в коде в шаблоне такого кода нет, но он сам почему-то появляется...

Напишите пожалуйста как исправить, чтобы было видно поля снизу

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
<script>$(document).ready(function() {    $("#content div").hide(); // Initially hide all content    $("#tabs li:first").attr("id","current"); // Activate first tab    $("#content div:first").fadeIn(); // Show first tab content    $('#tabs a').click(function(e) {        e.preventDefault();        $("#content div").hide(); //Hide all content        $("#tabs li").attr("id",""); //Reset id's        $(this).parent().attr("id","current"); // Activate this        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab    });});</script>

Вот ваш скрипт, который отвечает за табы..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy