Home > Web Front-end > JS Tutorial > Getting started with jquery Mobile—external link switching sample code_jquery

Getting started with jquery Mobile—external link switching sample code_jquery

WBOY
Release: 2016-05-16 17:44:02
Original
1481 people have browsed it

1. The internal link is in the form of setting the href attribute value to #id in the tag, and the external link is to add the rel attribute in and set the attribute value to external, such as: < a href="about.html" rel="external">3i Studio
2. External link switching sample code:

Copy code The code is as follows:





New Document







Weather forecast



@2013 3i studio

< /footer>


Today's weather



4~7'C
Sunny to cloudy
Breeze



3i Studioprovided


@2013 3i studio






External file about.html code:
Copy code The code is as follows:










< ;/HEAD>


About 3I Studio



3I Studio is a technical team dedicated to entrepreneurship and innovation

|

@2013 3i studio






3. Rendering preview:

Click 3i Studio for external link:

4. To return to the previous page, add the data-rel attribute in the tag and set the attribute to back, such as: Return to the previous page

Related labels:
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