Frontend Development Study Notes 1: Development Study Notes

Source: Internet
Author: User

Frontend Development Study Notes 1: Development Study Notes

 

I just spent some time learning html and css, and a rough look at javascript. After reading the tutorial, I made the following page. (This is the original)


 

There are some problems, such as some rounded corner buttons in the tutorial, use a layer-3 nested structure, which is similar to <ahref = ''> <strong> <span> HOME </span> </strong> </a> to set the background image for each label..

It seems a little outweighs the loss. In fact, it can be achieved by adding a tiled background with border-radius, that is, simple code Looks refreshing and conforms to the semantics of html. <A> HOME </a>, set a {border-radius: 5px} in css.

The implementation diagram is as follows:


Another problem is that the background of the topic of the entire page is a white image with a shadow effect on the rounded corner. In the tutorial, we also use three slices and three layers of html nesting. In fact, this can also be less troublesome. You can add the background white with a rounded border, and then set a shadow effect.

# Content {

Background: # fff;

Box-shadow: 0 3px 5px # e4e4e4;

Border-radius: 25px25px 0 0;

}

As follows:


 

However, there is a problem with the above solutions, that is, the new features in css3 are used, which may not be recognized in older browsers, and the requirements must be taken into account.

Finally, I put the complete page chart, which is better than the top one.


 

 

 

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.