gpt4 book ai didi

我网站上的 HTML 字幕文本移动速度怪异,但在 Chrome 中查看时,它完全没问题吗?

转载 作者:太空宇宙 更新时间:2023-11-03 22:58:00 26 4
gpt4 key购买 nike

这是我的 HTML 文件:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>namename</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
</head>
<body>


<div class="mainbanner">
<h4><marquee loop="100">hello i'm moving<img src="emoticon.png" alt="sarang" height="30" width="30"></h4></marquee>
<h1>aaa®</h1>

<nav id="primary_nav_wrap">
<ul>
<li><a href="">page1</a></li> |
<li><a href="">page2</a></li> |
<li><a href="">page3</a></li> |
<li><a href="">page4</a></li> |
<li><a href="">page5</a></li> |
<li><a href="">page6</a></li> |
<li><a href="">page 7</a></li>
</ul>
</nav>
</div>


<div id="time">
</div>

<div class="board">

</div>

<div class="signup">
<button>aaa login</button>
</div>

<div class="gaeshi">
<h4>board</h4>
<a href="http://www.yahoo.com">board 1</a>
<a href="http://www.yahoo.com">board 2</a>
<a href="http://www.yahoo.com">board 3</a>
<a href="http://www.yahoo.com">board 4</a>
</div>

<div class="music">
<marquee behavior="scroll" direction="slow" scrollamount="5"><h3>song playing</marquee></h3>
<audio controls style="width: 200px;" autoplay="autoplay" />
<source src="todaysong.mp3" type="audio/mpeg">
</audio>
</div>

<div class="search">
<input type="text" name="username">
</div>

<div class="buttons">
<button>Search</button>
<button>Cancel</button>
</div>


<!--FOOTER -->
<div id="footer">
<p class="copyright">© 2016 aaa. All Rights Reserved.</p>
</div>


<script src="app.js"></script>
</body>
</html>

因此,当我在 Chrome 上打开 HTML 文件时,一切看起来都很好,一切都按照我想要的方式正常进行。但是,当我在 Safari 上打开它时,顶部从右向左移动的选取框文本看起来很奇怪,看着它让我头晕目眩,而且边距/对齐方式略有偏差。有什么办法可以解决这个问题吗?似乎无法弄清楚问题可能是什么。它在 Safari 上看起来很奇怪和不同。

最佳答案

marquee 是一个过时的功能。它不应该被使用,因为它没有特别强的跨浏览器兼容性。

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee

特别是 truespeed 属性在 Opera 或 Safari 中均不受支持。

关于我网站上的 HTML 字幕文本移动速度怪异,但在 Chrome 中查看时,它完全没问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37535020/

26 4 0
文章推荐: c# - 为什么 C# 代码在 Visual Studio 2015 编辑器中部分变灰?
文章推荐: html - 标题图像偏好显示底部
文章推荐: javascript - 使用 jQuery .hide/.show 仅显示和隐藏一个
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com