This article continues to introduce the abstract factory model of 23 design pattern series. The simple factory model and the factory method pattern have been described earlier, and the third plant model-Abstract Factory mode-is still being introduced, as is the case with the manufacture of automobiles. Example background:as customers become more demanding, BMW needs different configurations of air conditioning and engine accessories. So the factory started to produce air conditioners and engines
download , use the image software to open body.bmp directly edit the font and color you need!
Code.asp file:
response.buffer = True Numcode Function numcode () Response.Expires =-1 Response.AddHeader "Pragma", "No-cache" Response.AddHeader "Cache-ctrol", "No-cache" Dim znum,i,j Dim ADOs, ADOS1 Randomize Timer generates a random four-digit number: Znum = CInt (8999*rnd+1000) passes to session session ("GetCode") = Znum The For loop is an array of random numbers placed in a subscript
A copy of MSN pop-up window Flash effect, modify the SRC location of the flash path, width and height, time can be redefined as needed.
var opopup = Window.createpopup ();
var poptop = 50;
function popmsgswf () {
var winstr = "OPopup.document.body.innerHTML = Winstr;
Popshow ();
}
function Popshow () {
Window.status = Poptop;
if (Poptop > 1720) {
Cleartimeout (MyTime);
Opopup.hide ();
return;
else if (Poptop > 1520 poptop Opopup.show (screen.width-320
css| Web page
if box width and height are known:
Font-family:arial, Helvetica, Sans-serif;
font-size:12px;
margin:0;
Padding:0;/*--for opera--*/
}
#layout {
position:absolute;/*--Absolute Positioning--*/
top:50%;
left:50%;
Margin-top: Half of -240px;/*--div height--*/
Margin-left: Half of -320px;/*--div width--*/
width:640px;
height:480px;
Background: #ECECEC;
}
pre{
padding:15px;
}
Explanation:If you set the midpoint of the screen to the coordinate origin (0 0), the positive direction of
Meta Tags for mobile platforms ----- Amazing effects, platform meta tags -----
I am not familiar with the meta tag in the web layout of the desktop platform. It will always be inside the head element. Do you have special feelings for SEO friends about meta, today we will talk about the meta tag of the mobile platform. What are the magical effects of the meta tag on the mobile platform?
1. Meta viewport
Speaking of the meta tag of the mobile platform, you have to talk about the viewport. What is
webapp is usually 320 in width under the vertical screen. What is the effect of our 320 page on the iphone? Some people may think that the iPhone is not 320 in width. It should be full screen. What is the truth? Let's take a look at the following display on the iPhone:The Code is as follows:AppUETherefore, we must change the viewport so that we can set the follo
For the desktop platform Web layout Everyone is familiar with meta tags, it is always located inside the head element, to do SEO friends must have a special affection for meta, today we say mobile platform META tag, on the mobile platform META tag What are the magical effects?1. Meta-ViewportWhen it comes to mobile platform meta tags, you have to say viewport, so what is viewport?Viewport is the viewable area, for desktop browsers, viewport refers to the area that is used to look at the page aft
Before iOS6, screen fit general use AutoSize to set the dimension relationship of the view to the parent view
Defect: (Insufficient autosizing layout)
1. Cannot set the relationship between views and views
2. You cannot set the size to zoom in, the maximum value is reduced, the minimum value
After iOS6, use automatic layout. AutoLayout
IOS8 size classes (more abstract, square)
In addition, some of the major device parameters a
See a lot of netizens do not understand the difference between DP, SP and PX: Now introduce the DP and SP. DP is also dip. This is basically similar to SP. You can use a DP or SP if you set properties that represent length, height, and so on. However, if you set the font, you need to use the SP. The DP is not density-independent, and the SP is not related to scale, except for density. If the screen density is 160, then the DP and SP and PX are the same. 1DP=1SP=1PX, but if you use PX as the unit
, PX, in, PT, mm) There are a lot of people who don't understand the difference between DP, SP, and PX: Now let's introduce the DP and SP. DP is also dip. This is basically similar to SP. You can use a DP or SP if you set properties that represent length, height, and so on. However, if you set the font, you need to use the SP. The DP is not density-independent, and the SP is not related to scale, except for density. If the screen density is 160, then the DP and SP and PX are the same. 1DP=1SP=1P
1. px (pixels) pixels-is a pixel, which is the actual pixel unit on the screen.
Dip or dp (device independent pixels) device independent pixels, related to the device screen.
Sp (scaled pixels-best for text size): similar to dp, it mainly deals with the font size.
Dpi (dot per inch): screen pixel density, how many pixels per inch
There is a member with the same name in the android api. The method is as follows:
2. dpi indicates the pixel density of the screen. That is, the number of pixels on t
(adjustFontSize + 4 );} Else {(TextView) v). setTextSize (adjustFontSize );}}}}// Obtain the font sizePublic static int adjustFontSize (int screenWidth, int screenHeight ){ScreenWidth = screenWidth> screenHeight? ScreenWidth: screenHeight;/*** 1. Obtain the view width in onsizechanged of the view. The default width is 320. Therefore, a scaling ratio is calculated.Rate = (float) w/320 w is the actual width2
Today, when collecting images from the Momo website, the resolution of the images will be changed to 320*480, and the original images contain pixel information.
For example, clear cottage (320*480) Wallpaper
So what should I do if I want to leave the "Clear cottage Wallpaper?
First, we should immediately think that we should first find the string and remove it.
Well, first of all, I thought so too. I define
This article mainly introduces the application details of meta tags in mobile platform development. For more information about meta tags, see, it will always be inside the head element. It must have special feelings for SEO friends for meta. Today we will talk about the meta tag of the mobile platform, what are the magical effects of meta tags on mobile platforms?
1. Meta viewport
Speaking of the meta tag of the mobile platform, you have to talk about the viewport. What is the viewport?Viewport
In "QT Quick Introduction" We mentioned that QML syntax is similar to JSON, please refer to "qt on android:http Download and JSON parsing" to see the JSON syntax. Of course, we expect to learn QML from scratch, so you can also look straight down.Copyright Foruok, reproduced Please specify the source:Http://blog.csdn.net/foruokObjectThe suffix of the QML file is QML, which is actually a text file. The following is a simple QML file:Import QtQuick 2.0import qtquick.controls 1.1import qtquick.dialo
For the desktop platform Web layout Everyone is familiar with meta tags, it is always located inside the head element, to do SEO friends must have a special affection for meta, today we say mobile platform META tag, on the mobile platform META tag What are the magical effects?1. Meta-ViewportWhen it comes to mobile platform meta tags, you have to say viewport, so what is viewport?Viewport is the viewable area, for desktop browsers, viewport refers to the area that is used to look at the page aft
ideal viewport. All iphone ideal viewport width is 320px, regardless of its screen width is 320 or 640, that is, in the iphone, the 320px in the CSS represents the width of the iphone screen. But the Android device is more complex, there are 320px, 360px, 384px, and so on, about the different devices ideal viewport the width of how much, you can go to http://viewportsizes.com to see, which collects the ideal width of many devices. To sum up: PPK the
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.