English 中文(简体)
1. 创建特定层面的tag云
原标题:Create a tag cloud of specific dimensions

贺词,

我愿在一盒子内制造一个超文本标签,其宽度和高度是绝对确定的。

如果案文只是一个字句,那么,我想案文能够最有效地使用,那么,这个词将是大的,能够填满箱子的满载(以及尽可能多的高度)。 如果说4个字,它们将按比例减少空间,但仍尽可能填满箱子。

污名化是必要的;但是,有必要将更长的扼杀线分开。 举例来说,如果说许多话的话,那么有几条甚至连线,而不是一条长线(小体体大小)。

这是trick笑的,因为我不知道像超文本显示的那样扼杀物的六分层。 谁能帮助我计算一下? (现值为:盒式宽度×、箱高度、体积、字体大小、字体直线和字体字体字距和字体字距等)。

我可以衡量个人信,但这会真正效率低下。 根据上述变量衡量字数的x和高度是否比较容易?

增加奖金: 我想利用尸体元素的全区显示这一tag云。 如果可能的话,我想在本机构内纵向和横向地集中使用这些词语。 如果我能够说明如何建设云层的话,我就可以这样做。

感谢!

我要补充说: 我知道很容易的固定点可能像Courier那样使用单一空间。 但是,对于这一挑战(并最终对美学者而言),我想利用格鲁吉亚。

问题回答

这样做并不容易。 但有一些解决办法,如果你愿意向它提供一些文字。

如果你在<条码>和>;span>, frex, 您可以测量<条码>和“span>”; 载于javascript中,表示亲身血缘与血缘的比例,然后调整直系体,以便 w系你想要的。

至于放在网页上,文字版面:中心将横向集中在线内容(如文字或图像)。 聚类元素如果具有一定的湿度(无需know<>>>>。 他们只得有一个,如显示:block <img> do),把左边和右边划入“auto”。

虚拟中心更为困难,现在只能以两种方式完成:

  1. If you know the height of the element, you can do "position:absolute; top:50%; margin-top: -(half the height);", where you substitute in the appropriate number and unit for (half the height). Don t forget the negative sign!
  2. If you don t know the height, you can exploit the ability of table cells to vertically align things. Either wrap it in a table and set the to be vertical-align:middle, or even better (if you can ignore IE7 and earlier), set the container to be display:table-cell and then use vertical-align:middle.

您可以在iframe上 put云,不设滚动屏障、边界、固定线高和固定高度:-。 例如,有5行标的余地,因此第6行不见。

不好的是,你最近的少量标签可能会被隐藏。当然,您可以从大到小分类标签,然后您可以确保最重要的标签始终可见。

http://www.google.com/search?q=flash+tag+cloud”rel=“nofollow noreferer”>searched Flash

同这个问题一样,我也存在同样的问题。 我成功通过使用解决该问题。

display: inline-block;
float: none;

<>条码<>可由年长浏览器支持。





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

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

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 ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签