First, the head added consciousness is proportional scalingWhen doing it, I found some problems:Before setting the body background picture for no-repeat width 100% is fixed to the parent container for position:relative;Then define the div position:absolute you want to do;But found that the resolution of the Web phone is larger, positioning according to the location of the image is confused.For example IPhone5 resolution for 320*568 Samsung is S4 resolution for 340*640 if you don't want to locate
JQuery + css achieves dazzling Dynamic Block drift and jquerycss drift
This article describes the effect of Dynamic Block drift implemented by jQuery + css. It is shared with you for your reference, as shown in the following code:
The running effect is as follows:
The Code is as follows:
Block element
Inline elements
address-Address BLOCKQUOTE-block Reference Center-aligning Dir-directory list Div-Common block-level easy, also the main label for CSS layout DL-definition list Fields Et-form control group form-interactive form H1-Big title H2-subtitle h3-3 level title H4-4
Source: http://www.imooc.com/code/6364In addition to inserting the table label in the previous section, you can center the indeterminate block horizontally, this section describes the 2 ways to achieve this effect, changing the display type of the element to be the inline element, and using its properties to set directly. The second method: Change the display of the block-level element to the inline type (s
Low version of IE, Firefox does not support the Inline-block attribute, want to achieve the purpose we need to do some extra work,The reference page is: https://blog.mozilla.org/webdev/2009/02/20/cross-browser-inline-block/ Li tags do not directly write text strings need to use the label package, otherwise inline will appear strange phenomenon, from the left side of the problem, 1Return to normal with Div
Based on the hard work of our predecessors, we can find the best solution to replace float: left with inline-block.Html code The code is as follows:Copy code Css code (from taobaoued) The code is as follows:Copy code . List {Font-size: 0;/* all browsers */* Word-spacing:-1px;/* IE6, 7 */}. List ul li {Font-size: 12px;Letter-spacing: normal;Word-spacing: normal;Vertical-align: top;Display: inline-block
applicable in tr,td, so the element can be placed into the table in the centerSource1 12 23 3class="Father">4 4class="Blockcenter">5 5Hehe6 67 78 8class="Tableclass">9 9Ten Ten One Oneclass="Ulclass"> A A"#"> Ah - - - - the the - - - -class="Tableclass"> - - + + - -class="Ulclass"> + +"#"> Ah A A"#"> Ah at at"#"> Ah - - - - - - - - - -class="Tableclass"> in in - - to toclass="Ulclass"> + +"#"> Ah - -"#"> Ah the the"#"> Ah * *"#"> Ah $ $"#"> Ah Panax No
Reference from: http://zhidao.baidu.com/link?url= Xtke0rtlkda1tzgais49zduaaja1yggzvv9zd9qjenv7hrrnd6lls90sw7eqxa3e0tzy3mhlegitsqdkhymrhkCSS.CSS content is as follows:HTML, body {height:100%; padding:0px; margin:0px;}. h,. Nav,. L,. m,. R,. b {text-align:center; font-size:14px; border:1px solid #000000; margin:-1px;}. h {height:10%;}. nav {height:5%; Background-color: #5C69C2;}. l {float:left; width:20%; height:70%;}. r {float:right; width:20%; height:70%;}. m {float:left; width:60%; height:70%;}
In css, the function of display: none; is to hide html elements. Otherwise, display: block is usually used ;. However, the display: block; function is to convert the current html element into a block element.Elements such as To hide
Block elements and inline elements can be converted using display
Display:inline-> to inline elements (for example, Div)
Display:block-> to block elements (e.g. a)
Cases:
Content of Test.css:
. cls1{
Color:blue;
Background-color:yellow;
font-size:20px;
Font-weight:bold;
Display:block; /* per block element display, full line * *
}
.
Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.Moon Light,The stomach was hungry. Jutou Bacon,Look down and smell the sausage.HTML Learning Note CSS block element plus pseudo class Selector section III (original)
Today in the use of jquery to make a carousel map, found that the Quick click the left-right button to switch the picture, the text icon will be the default double-click the selected state will have a blue or white background color block, this is the result of double-click the text selected, how to solve?IE and chrome under the same method, the corresponding element is added onselectstart= "return false;" However, this does not work under Firefox, but
Li Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Ide:visual Studio 2017
Browser:chrome
Os:win7
CodeDOCTYPE HTML>HTML>Head> MetaCharSet= "Utf-8" /> Metaname= "Author"content= "Https://www.cnblogs.com/jizuiku"/> title>title> s
Li Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Ide:visual Studio 2017
Browser:chrome
Os:win7
CodeDOCTYPE HTML>HTML>Head> MetaCharSet= "Utf-8" /> Metaname= "Author"content= "Https://www.cnblogs.com/jizuiku"/> title>title> s
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.