Mobile Terminal layout and terminal Layout
1. the scroll bar is on html by default and is moved to the body.
html{ width: 100%; height: 100%; overflow: hidden;}body{ width: 100%; height: 100%; overflow: auto;}
2. Restore the 1px border
Day 1: No need to build the menu layout of the table. I started to fill in the content. First, define the logo image:
Style sheet:
# Logo {MARGIN: 0px; padding: 0px; WIDTH: 200px; HEIGHT: 80px ;}
Page code:
The above code should be easy to
1. How to change the background color of item and press the colorListView By default, the background color of item is black, which is yellow when the user clicks it. If you need to modify the background color to be customized, there are three ways
The padding, border, and margin properties of an element affect how the entire document is laid out, and, more importantly, the appearance of the given element is severely affected.Height and widthThese two properties cannot be applied to inline non-
This article mainly introduces the javascript Implementation of simple loading of random color blocks, interested friends can refer to the loading of small blocks with fragments to achieve simple random color blocks, directly on the Code:
:
Code:
Understanding CSS borders and css bordersContents [1] basic style border Width border color [2] Order of Values [3] CSS3 style border-colors border-radius box-shadow border-image [4] Note basic style border
A border is a set of styles separated by
In the development of Android apps, the layout code of controls on the screen and the logic code for the program are usually separate. The layout code of the interface is placed in a separate XML file, which is a tree-type organization that controls
CSS Selector (supplemental)① pseudo-Class selector format: element: Property {}Allows us to format some items that are not in the document tree. Add special styles to some elementsAnchor pseudo-ClassDifferent ways to format hyperlinks elements in
CSS Box modelContains: element padding inner margin border border margin margin* Inner margin paddingPadding is the shorthand property setting value cannot be a negative value when the order is top →right right →bottom down →left leftIf not all
Through the CSS border can draw a triangle, different style combinations, have different effects, you can control its size, color, direction. Look at the following various graphics, I believe there may be a lot of graphics, we have not seen.Write
If a layout is very complex, then you need to check whether there is excessive drawing, if there is, it is likely to cause a decrease in refresh rate, causing the phenomenon of lag. So what is over-drawn? Over-Drawing is the addition of multiple
A Create XML file, location:drawable/xxx.xml, in the same directory remember to put related pictures android:drawable= "@drawable/pic1"/> two . Use XML file: 1. Method One: Configure the android:listselector=
1. Use your Android system's own transparent effects resources Android:background= "@android: Color/transparent"/>2. Use ARGB to controlTranslucentTransparentThe color and opacity (alpha) values are represented by hexadecimal notation. The range of
2. Settings.System.getInt (CONTENTRESOLVERCR, String name, int def) method removes the parameter value of the parameter named name from the collection of system settings (Settings) parameters, If the parameter is not in the system settings, the
First, for example relativelayout in android:visibility= "Gone"It has three properties: visible display; invisible display black background bar; gone not displayedIn a class, you can set its display or not, setvisibility (View.gone);Setvisibility
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. I believe that many front-end experts can write beautiful paging styles, but haran feels that it is okay to "get it" once.
First
I encountered a headache when I was learning Android-how to make the text work out as a drive lamp. At first I wanted to find some information on the Internet, just like everyone else, however, after searching for a few hours on the Internet, I
Sina Weibo and the QQ space all have the pull-down refresh effect, and many others are looking at it and analyzing it in detail. The principle turns out to be the same.
On the basis of the original author, I wrote some comments to help you better
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.