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