Home > Web Front-end > JS Tutorial > Solve the problem of JQeury displaying content without margins and content next to the browser edge_jquery

Solve the problem of JQeury displaying content without margins and content next to the browser edge_jquery

WBOY
Release: 2016-05-16 17:07:59
Original
1062 people have browsed it

The content displayed on the written JQuery page has no margins, and the content is close to the browser edge, which is particularly ugly (as shown below)
Solve the problem of JQeury displaying content without margins and content next to the browser edge_jquery
The code is as follows:

Copy code The code is as follows:





News content< /h2>













Catering consultation







Actually the reason It’s very simple, that is, the displayed content is not placed in the content, so just add a data-role="content" in the div. The modified code is as follows:
Copy the code The code is as follows:



< div data-role="page" id="page">

News content













Catering consultation






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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template