Today Saturday Oh, small series to be two hard-core dry, add energy ~
table of Contents
1, pages adaptive mobile phone screen width
The first involves the knowledge of HTML, but also very useful to drop ## title.
Add the following code in the HTML tags, the web width may be adaptive so that the phone screen width
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
2, external network access web project
2.1 premise
Premise a: The machine can board computer outside the network
premise b: IP address obtained in operation with Baidu in the "IP queries" to get the same IP address
2.2 Configuring Tomcat
Find conf / server.xml under the Tomcat, modified as follows:
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
----localhost换为外网IP地址,8080换成8888-------------->
<Engine name="Catalina" defaultHost="110.179.1.98">
<Host name="110.179.1.98" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
2.3MyEclipse in Tomcat configuration
MyEclipse is the case with Tomcat, do in MyEclipse modified as follows:
Windows -> the Preferences -> MyEclipse -> Servers -> Integrated Sandbox -> MyEclipse Tomcat 6 -> Port Number The: 8888
2.4 Test
A: HTTP: // localhost: 8888 / MyJSP01 / index.jsp
b: http://110.179.1.98:8888/MyJSP01/index.jsp
c: Login test input above URL in your phone's browser
Well, first here today to share you, what do not understand can always give small series of private letters message Yo, I see the small series will promptly reply to your oh ~
See you ~