Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-05-16 17:07:591034browse

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






Statement:
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
Previous article:A brief analysis of JS delegate and live_javascript skillsNext article:A brief analysis of JS delegate and live_javascript skills

Related articles

See more