English 中文(简体)
<span> 元素内容中的内容包到下一行
原标题:Content in <span> element wrapping to the next line
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 9 hours ago. Improve this question If you take a look at https://www.cranberryleague.com and scroll down to the "2024 Scoreboard", I can t seem to figure out why the team seeding, which is inside a span element, is wrapping to the next line for the team listed on the bottom, but not for the team listed on the top. Just to be clear, I am referring to the "(6)" next to the Scituate Stripers, and the "(7)" next to the Northeast Lions as an example. I do NOT want the team seeding to wrap to the next line. I want it to stay on the same line as the team name for both the team on the top and the team on the bottom. Any help would be greatly appreciated!
问题回答
The content in is wrapping to the next line where the previous element is a
(a block element). It seems that your code for the away team is correct, but your code for the home team is not. Here is the HTML for recent-scores-away-team. Inside your element you have used tags, and it renders as you want it to. Here is the HTML for recent-scores-home-team. Inside your element you have used




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!