Understanding and Application Record (7)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:16
Original
1125 people have browsed it

1. Underline

<ul style=" list-style-type:none; margin:0;color:Gray; font-size:11px;margin-top:30px">            <li style=" float:left; position:relative; margin-left:380px; "><a href="#">关于我们</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">关于我们</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">联系我们</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">人才招聘</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">商家入驻</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">友情链接</a></li>            <li style=" float:left; position:relative; margin-left:20px"><a href="#">冬冬购物社区</a></li>        </ul>
Copy after login

a
{
text-decoration: none;
}
a:hover
{
text-decoration: underline;
color:Red;
}

2.’s target attribute has four special values:

  • target='_blank' The browser always opens a new web page
  • target='_self' It causes the target document to be loaded and displayed in the same frame or window
  • target='_parent' This target causes the document to be loaded into the parent window or frameset containing the frame referenced by the hyperlink. If this reference is in a window or in a top-level frame, then it is equivalent to target_self
  • target='_parent' If there are multiple parent frames, directly remove all parent frames and refresh the page
  • 3. href attribute of :

  • Absolute URL - pointing to another site (such as href="http://www.example.com/index.htm")
  • Relative URL - points to a file within the site (href="index.htm")
  • Anchor URL - points to an anchor within the page (href="#top"
  • source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template