Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 通过滑动新闻点击显示问题_Php_Html_Css - Fatal编程技术网

Php 通过滑动新闻点击显示问题

Php 通过滑动新闻点击显示问题,php,html,css,Php,Html,Css,我有一个问题,这个滑动点击新闻自己的网站 问题是这些文章的标题相互重叠 CSS: background: none; display: inline-block; list-style: disc; margin: 0 0 0 20px; color: #fff; letter-spacing: ; float: left; /* width: 300px; */ text-align: left; } display: inline-block; width: -webkit-fill

我有一个问题,这个滑动点击新闻自己的网站

问题是这些文章的标题相互重叠

CSS:

background: none;
display: inline-block;
list-style: disc;
margin: 0 0 0 20px;
color: #fff;
letter-spacing: ;
float: left;
/* width: 300px; */
text-align: left;
}
 display: inline-block;
 width: -webkit-fill-available;
 overflow: hidden;
 text-align: initial;
 /* width: 300px; */
 float: right;
 padding-left: 5px;
 padding-right: 5px;
 /* white-space: nowrap; */
这是marquee的代码 CSS:

background: none;
display: inline-block;
list-style: disc;
margin: 0 0 0 20px;
color: #fff;
letter-spacing: ;
float: left;
/* width: 300px; */
text-align: left;
}
 display: inline-block;
 width: -webkit-fill-available;
 overflow: hidden;
 text-align: initial;
 /* width: 300px; */
 float: right;
 padding-left: 5px;
 padding-right: 5px;
 /* white-space: nowrap; */
HTML

<ul style="width: auto;">
    <marquee direction="right" scrolldelay="1" onmouseout="scrollAmount=7" onmouseover="scrollAmount=7" scrollamount="7">
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101099">الجيش المصري يفجّر 4 مساجد شمال سيناء</a>
        </li>
        <li style="/* list-style: none; */">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101098">بالصور.. "سبق" ترصد تضرر مساجد نجران من قذائف المليشيات الحوثية</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101097">افتتاح أول مسجد على أطلال كنيسة مهجورة في إيطاليا</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101096">حكم قبض اليدين في الصلاة</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101095">إمامة المسافر بالمقيم</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101094">ترك الصلاة</a>
        </li>
        <li style="list-style: none;"> 
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101092">حكم تكرار الجماعة في المسجد</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101090">بالصور.. "نورد كمال" أبعد مسجد على الكرة الأرضية</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101089">مسجد النقلة بدير البلح يكرم الملتزمين في صلاة الفجر</a>
        </li>
        <li style="list-style: none;">
            <img src="images/logonews.png" width="20" height="20" style="">
            <a href="art.php?id=1010101088">إنشاء أول مسجد مخصص للنساء في بريطانيا</a>
        </li>
    </marquee>
</ul>

你犯了很多错误。首先移除所有浮动。将ul移动到框内。请看我的代码片段:

ul{
空白:nowrap;
}
ulli{
显示:内联块;
利润率:0.20px;
颜色:#fff;
文本对齐:左对齐;
}
帐篷{
显示:块;
溢出:隐藏;
左侧填充:5px;
右侧填充:5px;
}


将代码粘贴回去,那张图片不好。你发布的图片太小了。你说你有问题,但我看不到问题的解释。这目前只是一个代码转储,带有一个糟糕的示例图像,它在喊“修复我”。威尔,问题是…文章的标题相互重叠…这是一个清晰的图像抱歉