Font size of sup in IE, Firefox, and other browsers

Source: Internet
Author: User

I wrote a page today and used the sup tag!

At that time, I used the sup tag package in the H tag. Because I set the font of the H tag to 14px, In the IE browser, it turned into 12px automatically according to my idea. It is also normal in Google's browser, but although it looks like 12px in Firefox, there are some bold and false feelings, but in fact, I have not added a rough record to it. Finally, I set the sup font to 12px. Everything is normal in Firefox and Google, but it cannot be normal in IE. I set the sup font to 14px again, the font of Firefox and Google Chrome is 14px.

Ah, I don't know why, so I used hack and added * directly before font-size. I can only use IE6 and IE7, and IE8 is still loyal. Haha, find a solution:

Is to add * Before the label *.

. List_info_con H3 Sup. subhomelink {text-indent: 0; Background: none; width: auto; Height: 16px; line-Height: 16px; font-weight: normal; Vertical-align: Text-bottom; font-family: ""; font-size: 12px ;}*. list_info_con H3 Sup. subhomelink {font-size: 14px ;}

. List_info_con H3 sup. subhomelink {

Text-indent: 0;

Background: none;

Width: auto;

Height: 16px;

Line-Height: 16px;

Font-weight: normal;

Vertical-align: Text-bottom;

Font-family: "";

Font-size: 12px;

}

. List_info_con H3 * sup. subhomelink {font-size: 14px ;}

As you can see, hey, this is the solution for all Internet Explorer hack.

There are also dedicated for IE7 and IE6

You can underline the label. Please refer:

. List_info_con H3 _ sup. subhomelink {font-size: 16px ;}

Note: You can see clearly where * and _ are stored.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.