Jump to content
  • 0

marquee


denas
 Share

Question

есть некоторая область, в ней поочередно выводится различная инфа, разбитая на блоки одинаковой высоты.

используется тег marquee.

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style> table{
margin:0px;
padding:0px;
background-color:#5e0100;
color:white;
font-family:Arial;
ont-size:0.8em;
text-align:center;
}
</style>
</head>
<body>
<table width="430" height="60">
<tr>
<td>
<marquee width="430" height="60" direction="up" scrolldelay="3000" scrollamount="60">
<b>Заголовок 1</b><br />
инфа инфа<br />
<b>инфа</b><br />
<b>Заголовок 2</b><br />
инфа инфа<br />
инфа
</tr></td></table>
</marquee>
</body>
</html>

проблема в том, что добавляется 3й пустой кадр.

возможно ли его как-то убрать? желательно без js, jquery, php и т.д.)

заранее всех благодарю.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

<marquee behavior="alternate" width="430" height="20" direction="down" scrolldelay="1000" scrollamount="20">
<strong>Заголовок 1</strong><br />
<strong>Заголовок 2</strong>
</marquee>

А вообще, это извращение, и у тебя куча ошибок в html коде..

Edited by ATI
Link to comment
Share on other sites

  • 0

ГДЕ ДОКТАЙп?!?

куча ошибок!!!

нужно писать вот так:

<!DOCTYPE html>

<html>

<head>

<style type="text/css">

table

{

padding:0; margin:0;

background-color:#5e0100;

color:white;

font-family:Arial;

font-size:0.8em;

text-align:center;

}

</style>

</head>

margin:0; padding:0;

- это зачем?!

Edited by htmlonline
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