CSS Getting started practicing the first day of static Web project code

Source: Internet
Author: User
The main page to finish today is index.html

First on the effect chart:

Description: 1. The middle is a SWF animation. Import as follows:

<embed src= "images/index.swf" type= "width=" 712px "height=" 428px ">

2. There is a enter link jump page below, which is white (because the default link is blue). In the body with link tag decorated.
Here's a little bit about the link tag:

<body link= "Color" >

It works on all elements that are not individually set in the Web page.

<body alink= "Color" >

Use ALink to set the color of the mouse when you click a hyperlink

<body vlink= "Color" >

Use Vlink to set the color of the hyperlink text you have visited

Final code implementation:

<body link= "White" alink= "#0066ff" vlink= "#ff0000" >

3. The bottom is also a picture, the code is written in the CSS file, as follows:
The following path explains:.. /is go to the previous directory. The path is shown below:

Background:url (".. /images/copyright.jpg ") No-repeat;

Here's the code.

First index.html Code

 

INDEX.CSS Code

        *{
            margin:0px;
            padding:0px;
        }
        body{
            Background:url (".. /images/bg.jpg ") Repeat
        . swf {
            position:absolute;
            left:50%;
            top:50%;
            Margin-left: -356px;
            Margin-top: -215px
        }
        . Enter {
            width:100%;
            font-size:18px;
            Text-align:center;
            color:red;
            Font-weight:bold;
            Text-decoration:underline;
            margin-top:8px
        }
        . end{
            width:574px;
            height:70px;
            Background:url (".. /images/copyright.jpg ") no-repeat;
            margin:0 Auto;
        }

Finish things.

If you also want to manually tap the code, you can click to download the index home page of the compression package

Bye. さよなら ...

Related Article

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.