WebApp front-end problems encountered

Source: Internet
Author: User

From October 1, 2015 to October 25, two undergraduates and one graduate student and one teacher formed a team of four people, open the front-end project of the education of occurrence

Summary and share of the problems encountered:

First, the main application software: Sublime_text hbuilder

Beginners can look for code in the jquery mobile demo (see figure for code parody)


1. Fallback button settings: <a href= "Javascript:history.back (-1);" style= "Background:none;box-shadow:none;border:none;" Data-ajax= "false" ></a>

:

Add the properties of the style to remove the background color of the loaded picture, provided the PS is set to a transparent background

When a separator line is encountered:

Similarly, using two div to separate it is easier than using margin-top or directly adding a picture

<div class= "Ui-grid-c" >
<div class= "Ui-block-a" ><span></span>
<br><span > beyond the entire school students </span></div>
<div class= "Ui-block-b" ><span></span>
<br><span > Beyond the City students </span></div>
<div class= "Ui-block-c" ><span ></span>
<br><span></span></div>
<div class= "ui-block-d" ><span> </span>
<br><span></span></div>
</div>


2. Text scaling problem after:Plus jQuery.fontFlex.js file
Head Plus:
<script src= "Js/jquery.fontflex.js" ></script>

<script type= "Text/javascript" >
$ (function () {
All elements
$ (' body '). Fontflex (10, 18, 30);
$ (' #img_arrow '). Fontflex (10, 30, 70);
H1 only
$ (' H1 '). Fontflex (15, 40, 60); });
</script>

Add JavaScript scripts to solve text changes automatically with browser size

Drawing multiple rendering solutions in 3.ExamCompare
Url:
Http://www.4byte.cn/question/455962/android-webview-html5-canvas-error.html

4. Page jump problem plus data-ajax= "false"
<a href= "Javascript:history.back ( -1);" style= "Background:none;box-shadow:none;border:none;" data-ajax= "false" >
Url:
Http://zhidao.baidu.com/link?url=GgSKh384-vVFvUDrL3UlPiL7OmVdLo5rOAQBwiyzabn4WhtogYFoNRHTMbrdcak_ Qfo6izpyado5d9_dalxwp7rhy5qr2uqbf5mnab7lujy

Page jump should be added data-ajax= "false", or the computer browser can be returned to the perfect return to the mobile phone side of the return function is not possible


5.alert changed to not be recognized in the phone must be changed to CONFIRMJQM
JS folder to add the JQuery.Alert.js file
<script src= "Js/jquery.alert.js" ></script>

The attachment is a hint box code written in jquery, please put this JS file into the JS folder and declare the reference in the head section.
You can then replace the alert that appears in each JavaScript with CONFIRMJQM.

Alert can only be implemented on the computer, and the alert must be changed to CONFIRMJQM on the phone side

WebApp front-end problems encountered

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.