How to dissect a website? -

Source: Internet
Author: User
I like a lot of dynamic web pages abroad. If I want to analyze how he needs to make a production process, I like a lot of dynamic web pages abroad, what should I do if I want to analyze his production process? reply to the content: ~

Html5 web tracking
In fact, it is a thing
A certain disruptive change


Pass
Chrome Right navigation → query Elements
We can see that
Dynamic CSS of a specific object
How was it canceled?

Understanding this thing
How is it moved?


The following is an example of an anatomical Website:

There is a Starbucks Frappuccino Website
What I like most is
Toggle navigation on the Mobile Terminal

In the top-right corner, "3" (Toggle) will be converted to "X" after the nodes go down to the navigation bar 」
The representative said that I could shut down again
Very interesting
You can click Open gif to see:
Http://manglekuo.com/img/toggle.gif


So at first, Chrome on my current TV
Narrow the coverage of Chrome so that he can see the Toggle.
Then click the Toggle on the right to query the element.


At this time, we can see Developer Tools
Appear below the plane
Here I cut the cursor for convenience
Split it out.
To the right pane

As shown in the following example:


When I clicked the Toggle
I found the p class.
From the original "sbOne mobile"
Changed to "sbOne mobile expanded"

See the following example (note the difference between the last row of the selected two rows)


This is a frequently-used technique for network dynamics.
After an event (in this case, it is a fault)
Use Javascript
Change the content in the class
Progressive Development

Please wait for me to download the css(in this example, It is main.css. In this example, the rightmost part of the screenshot is main.css ?... The character string can be found in main.css ).
Use ctrl/command + F to find ". expanded" Class

As shown in the following example (the growth may take a few minutes to see all)

The largest section at the bottom has always been repeated The largest section at the bottom has always been repeated
That's what we want.

Because HTML 5 is dynamic
Or something practical
The developer wants to make the major producers support
You need to add different prefixes.

There are two types of HTML 5 animations

One is Animation and the other is Transition.
(Check it yourself)

You can specify the Animation for Animation.
For example, when the time range is 0%-20%,
50 ° for 20%-100% of the time

However, Transition can only be used to determine the consistency and time.
In this example, all 1 s;
That is, one second of all adequacy
The representative said that if there is any disruptive change
It takes only one second to complete the transformation.

The above uses transform: rotate (-45deg );
Therefore, it takes one second to adjust the duration to 45 °.



In the next two generations, he specifies the animation of the First stick and the last stick)



The root Power Station
Overwrite the original rule in the background
Changes

When you press Toggle
The first primary stick is °
Second stick-45 °
The Third runner is not transparent and changes to 0.
There is a 1-second change in all the disruptive changes of the three primary keys.

The result is the same as what we observed!
So this is the essence of this notebook!

We have successfully dissected what we want.

What other problems do you have...
I have to renew it...
Ask directly... Many dynamic web pages outside China usually generate page dom by js and enter the site. These websites have a small amount of information and a small number of pages, but are highly interactive. Research on such websites focuses on js. Extract the desired part or delete the unnecessary part.

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.