"Front-end notes" draw a horizontal line in HTML and IE10 CSS files that support referencing

Source: Internet
Author: User

First of all, Happy National Day ~ ~ ~ This is my first national day outside the province, after all, after graduating this year Wow, the struggle we want to refuel ~ ~ ~

Recently I will continue to summarize the previous Web project to use the front-end knowledge, and everyone share ha ~ ~ ~

So, how do you draw a horizontal line? I think there are three ways, but the style is different, so everyone according to the needs of OH.

1.

<HTML><HEAD></HEAD><BODY><DIV>A</DIV><HR/><div>b</div> </body>

It's simple.

2.<div> to construct, we know that border is the meaning of the boundary, many times we use it to set some side border of what, here we use it, look at the code (or between a and B to insert a horizontal line):


A little science, 1px means that the line is how wide, the larger the wider, solid means it is a solid line, there are many properties such as dashed (dashed), Groove (Groove effect, specifically see border HTML, of course, #ccc is the color.

3. <div> to construct, but with Border-bottom, why so use, we often use the horizontal line actually I think is a div below a property, rather than a separate attribute, so the code has changed, as follows:


Today in helping a friend to do a website, put the CSS into the external CSS file for reference, but in Firefox, Google Browser is normal display of the case, IE10 can not display, and then find a bit of information on the site, here thanks to Baidu know a user to provide solutions (with IE8 to render), It is also possible to test the IE6 with IETester ~ ~ ~:

Add in

<meta http-equiv= "x-ua-compatible" content= "ie=8"/>


These are all in the 14-inch notebook 100% Web browser effect.

Well, I wish you all a happy National Day holiday! ~~~

(Reproduced this site article please indicate the author and source Coder the extraordinary , do not use for any commercial use)

Hope to share with you, interaction.

"Front-end notes" draw a horizontal line in HTML and IE10 CSS files that support referencing

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.