我正在使用MARQUEE標記滾動三個句子。HTML MARQUEE不能按預期工作
第2個句子正確滾動,而最後一個是在完成div中間的滾動(當我使用全屏100%時)。
marquee span {
\t margin-right: 23%;
\t }
\t marquee p {
\t white-space:nowrap;
\t margin-right: 100px;
\t }
<div style='color: #fff;position: fixed;bottom: -10px;padding: 8px 0px;width: 100%;background:#090270;z-index:100;'>
<div style='float: left;width: 90%;padding: 3px 8px 0px 8px;margin-top:-5px;'>
<marquee scrollamount='20'>
<p>
1. To decrease effort to plan 2018, we have copied your team planing from CW49/2017 to CW01/2018. By doing that you will have already all 2017 employees with their individual project setup available to start 2018 planning. That was only applied if no planning was avaialble yet.
<span> </span>
2. <a href='./rat/docs/RAT_Absence_2018.xlsx' title='Absence calendar 2018' target='_blank'>Absence calendar 2018 available</a>. Please select your team location and plan absence accordingly. Either use weekly or monthly planning. If detailed vacation planning per employee is known, please update the planning
<span> </span>
3. Team leaders are requested to use the information regarding target hire date for RAT planning in their project with respect to resources joining in future. This date can be found in Menu:Reports-><a href='./team-members'>Team Members List</a> page as (Internal - <span style='color:#093F7F'>DD-MON-YYYY</span>). Please use projx id:100000 for timeline prior to that date.
</p>
</marquee>
</div>
</div>
['
在代碼片段中,我們看不到錯誤。但是,如果我們將代碼複製到HTML文件中,並在屏幕上運行,我們可以看到第三句完成 – ManiMuthuPandi
@ j08691感謝您的反饋;水平滾動文本的任何替代方法 – ManiMuthuPandi