English 中文(简体)
2. 如果不显示滚动条形,可滚动案文线如何
原标题:how scrollable text line inside a div without showing scroll bars

缩略语

Long file name inside A Div

当你看到这些长篇卷宗名称时,你会发现一个横幅告诉我们——而且;

.FileName {
    float: left;
    width: 438px;
}

我们预先确定了这个时期的宽度!

q#1:因此,我们为什么会过度流入这块土地?

q#2(进口): 能否在不展示滚动酒吧的情况下使这个名字能够滚动吗?

edit
(with jquery or javascript or css)

预先感谢

最佳回答
问题回答

由于这一案文可以打破(没有空间):

R1DA029_APP_SW_12_2395_GENERIC_KT_REDBROWNBLUE_CID52_49_DB3210

You could change the span s into div s and give them a height and an overflow:hidden.

Html:

<div class="FileName">R1DA029_APP_SW_12_2395_GENERIC_KT_REDBROWNBLUE_CID52_49_DB3210  asangsm.com.rar</div>

Css:

.FileName{
    float: left;
    width: 438px;
    height: 20px;
    overflow: hidden;
}

I don t think it s possible to make that file name scrollable without showing scrollbars.

Short of using CSS3 s marquee, I can see no simple solution. You would have to use Javascript.

为了避免断线,您可使用<代码>white-space: nowrap;。





相关问题
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!

热门标签