Android obtains the total capacity of the SD card, available size, total body memory capacity and available size, and androidsd
Public long getSDTotalSize () {/* get the memory card path */File sdcardDir = Environment. getExternalStorageDirectory ();/* StatFs View File System space usage */StatFs statFs = new StatFs (sdcardDir. getPath (); long blockSize = statFs. getBlockSizeLong (); long totalSize = statF
Determine whether a Wi-Fi connection is available and whether a Wi-Fi connection is available
/*** Determine whether the current connection mode is a Wi-Fi connection** @ Param context* @ Return*/Private static boolean isWifiConnected (Context context){Return getNetworkState (context, ConnectivityManager. TYPE_WIFI) = State. CONNECTED;}
/*** Obtain the connection status.** @ Param context* @ Param networkTy
Two methods are available for the EasyUI creation dialog box, and two methods are available for the easyui creation dialog box.
A Dialog box (Dialog) is a special window that can be included in the toolbar at the top and buttons at the bottom. By default, the Dialog box (Dialog) cannot change the size, but you can set the resizable attribute to true to change the size.
This is the dialog box.
EasyUI can be
2 small experiments were done today, shielding the keyboard is not available shielded mouse right button unavailable
Test one, the shielding keyboard is not available
There are 3 keyboard events
A, KeyDown: Press a key on the keyboard trigger, always hold down a key will continue to trigger
B, KeyPress: Press a key and generate characters when the trigger, that is, ignore Shift,alt,ctrl and other functi
-index-value.html // base/fast/overflow/onscroll-layer-self-destruct.html // // Don't use new lines so that lines in the modified handler // have the same numbers as in the original code. String code = "(function (evt) {" \ "with (this.ownerDocument ? this.ownerDocument : {}) {" \ "with (this.form ? this.form : {}) {" \ "with (this) {" \ "return (function(evt){"; code.append(m_code); // Insert '\n' otherwise //-style comments could break the handler. code.append( "\
the color picker to wash away the color of any area of the page, and copy to the Clipboard.Overall, although there are some deficiencies in the IE8, such as the memory used to open multiple pages is a bit high, but IE8 can be more convenient for ordinary browser users and web designers, and, in terms of security IE8 also has a great increase, which is also a IE8 browser's biggest bright spot. The use of IE6 browsers will become increasingly inconveni
the DIV to be closed. Code: **************************************** **************************************** *************************************** 3. Other compatibility skills (useful) 1. Setting padding for Div under FF will increase the width and height, but IE will not. (available! Important solution)2. center problem.1). Vertical center. Set line-height to the same height of the current Div, and then use vetical-align: middle. (Note that d
Ie6 IE7 multiple IE8 browsers css writing
When designing a website, you should pay attention to css style compatibility with different browsers. Especially for networks that fully use div css design, you should pay more attention to IE6 IE7 FF's compatibility with CSS styles. Otherwise, your network may be out of chaos and you don't want any effect!
/* All browsers
drawing interface, but it is not impressive in general.
First, its "top sites" function is similar to Chrome's homepage thumbnail, but it looks cool to use 3D technology. when viewing the browsing history, the beautiful 3D style interface is also very beautiful, this is useful for those who only remember what the website looks like but forget the website name.
I like safri's page injection and JavaScript debugging functions. Of course, most of these functions are
How to Set HTTPS policies for old browsers
A few days ago, a friend asked me: we all said we recommend using the Qualys SSL Labs tool to test SSL security. Why are some of the most powerful Security manufacturers having low scores? I think this problem should be resolved in two aspects:
The situation of domestic user terminals is complex. In many cases, the SSL security configuration is reduced to be compatible with more users;
Some major manufactu
: 5px; Background-color: # 6666cc;} // The IE width is 300px and FF is 310px.# Box1 {width: 290px! Important; width: 300px; padding: 5px; Background-color: #999966;} // ie: Px in width and PX in FFNote: There is an error in the example. If "" is added to the value, for example, width: "300", Some browsers cannot recognize it. In the example, the padding: 5px parameter is missing.5. UL labels have padding values in Mozilla, while only margin has values
1. Does the user benefit from the same appearance? Not so. Most users use only a single browser, so they view the site in just one way. They don't care what the site looks like in other browsers.
2, the same appearance can better maintain the company's brand image? Not The company's brand is established through style, color, trademarks and logos used and representations.
3. Sites encoded using WEB standards can be browsed in old
capture tool. We will not go into details about how to use it.
10Of course, you can't forget ie at the end, and the way that IE opens the packet capture tool is similar. tool --> F12 developer tool, but IE has a feature that when no page is opened, this option is unavailable in gray.
11Open a page and use this option.
12In the same way, the IE packet capture tool is disabled by default. You can click Start to capture network traffic.
13Select a result and click details. The tool displays th
very few, in fact, it is fortunate, Because IE8 fixed a lot of IE6 and IE7 bug, more close to the standard.There are 2 types of CSS hack currently available for IE8 's full version:The first type: "/9″:The basic wording:Test {color//*/: BLUE/9}This IE6, IE7, IE8 can be identified, but IE8 does not recognize the "*" and "_" CSS hack; so we can write hack:header {width:300px;}/* All browsers */header {WIDTH/
I had a project several months ago and had a headache in displaying and executing JavaScript and CSS in different browsers. Today I searched the internet and summarized the information, this document is from the Internet and cannot be used to specify the source.
I. There are two methods to write CSS for different browsers:
1. Use the underscore (*) and underscore (_) to distinguish them, as shown below:
Hide CSS for browsers lone nine swords
Hide CSS for Browsers
We all know that there are differences between browsers, many people in the use of Xhtml+css way to create a Web page has been a headache. It takes a lot of skill to work under the influence of these differences, and "hiding CSS" is one of the most important techniques (even the most important). The m
compatibility. When you introduce an additional compatibility mode,This article describes the need for file compatibility, lists the file compatibility modes available to existing versions of IE and demonstrates how to select a specific compatibility mode.
Understanding the need for file compatibility
Each major version of IE's new features are designed to make browsers easier to use, increase security,
HTTP and other protocols/applications. For details, see:
+ ------------- + -------------- +
| XHR | SSE | WS |
+ ------------- + ------ ++
| HTTP |
+ ---------------------------------- + ------- +
| TLS * |
+ ------------------------------------------ +
| TCP |
+ ------------------------------------------ +
| IP |
+ ------------------------------------------ +
It can be seen that HTTP is implemented over TCP, so HTTP does not need to focus on the reliability of data transmission. A mechanism si
The European Union said on Tuesday that about middle May of European Windows users will be able to choose to install browsers other than IE by 0.1 billion. AccordingThe agreement between Microsoft and the European Union, Microsoft agreed to bind ie browsers in windows, while also providing installation options for other browsers. These
The European Union said on Tuesday that about middle May of European Windows users will be able to choose to install browsers other than IE by 0.1 billion.
According to the agreement reached between Microsoft and the European Union, Microsoft agreed to bind ie browsers in Windows and provide installation options for other browsers. These
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.