Home >Web Front-end >HTML Tutorial >Why do the things inside the span fall off and not stay in a straight line? _html/css_WEB-ITnose

Why do the things inside the span fall off and not stay in a straight line? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:15:192061browse

	<div class="news">            <ul>				<li><a href="#">Myspace宣布网站改版计划 谋求复兴 </a>(97人阅读)<span>2012-9-20 13:05</span></li>             </ul>        </div><style>.news {	padding-top:15px;	padding-left:35px;	padding-bottom:25px; }.news ul {	width:570px;}.news ul li{	line-height:30px;} .news ul li span {	float:right; 	color:#b5b5b5;}</style>


Reply to discussion (solution)

Method 1
Add
b2e0008eb9e67d7b8d61b98a0dad88c445a2772a6b6107b401db3c9b82c049c22012-9-20 13:0554bdf357c58b8a65c66d7c19c8e4d114 ee7959cc8dd4be16ef633321c03dac32Myspace announces website revision plan to seek revival 5db79b134e9f6b82c0b36e0489ee08ed(97 people read)f3e18f43997f355ee47718a9b3ba8063


Method 2 Change
to
25edfb22a4f469ecb59f1190150159c645a2772a6b6107b401db3c9b82c049c22012-9-20 13:0554bdf357c58b8a65c66d7c19c8e4d114 e99154396dac63cf45c677ecf72df8a3Myspace announces website...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn