English 中文(简体)
改变旧观念 Html SIZE=+x=cs
原标题:Converting old Html SIZE=+x to css

I m与html和CSS重建一个老的网站,从未用“旧式”标记制作一个网站,我不知道在CSS中,大小+x与什么有关,是混杂的还是什么? 是否有办法重复这种说法,还是必须确切说明规模?

简言之,在一只狗知道大小的情况下,如何添加x个餐?

我在此特别的例子包括:

<H1 ALIGN=CENTER>
    <B><FONT color="red" SIZE=+4>PHONE BOOK</FONT></B>
</H1></CENTER>
最佳回答

这种 d脏的旧价值相当于这种 c。

.item{
  font-size: xxx-large;
}

That s if you view it in webkit. In firefox, it s about 48px.

页: 1

Here s the W3C s details of the modern equivalents

The old font sizes are set relative to the browsers current default font-size. It s not the sort of thing you want to leave up to chance, if you want your site to look how it was designed.

我的意见不胜枚举,而是使用胚胎或牛肉的价值。

为了你的疗养,不要把这些谣言旧的价值观相匹配,视而不见,或者如果你真心 w地 w,则进行 screen子比较。

问题回答

in short the tag has 7 sizes for text: 1-7. the default was always 3 when used size=+1 it means make it a size larger than 3 (same as size=4).

it was used so different web browsers will show the page correctlly (their sizes are apparentlly different size 3 on explorer wasnt the same on firefox etc)

这里只字体界定了字体和字体大小,并随行。

http://www.jonstorm.com/html/font.htm

Much of this depends on the base font size used on the page, as well as how those font sizes are defined in the stylesheet. The best way to determine the actual size use to use Firebug. Inspect the element and open the "Computed" tab of the right. It will tell you the font size in pixels.





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

热门标签