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
Release: 2016-06-24 12:15:19
Original
2059 people have browsed it

	<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>
Copy after login


Reply to discussion (solution)

Method 1
Add
2012-9-20 13:05 Myspace announces website revision plan to seek revival (97 people read)
I used the second method, thank you so much!
Method 1
Add


Method 2 Change
to

  • 2012-9-20 13:05 Myspace announces website...

  • source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template