CSS Code Snippets. CRM_TC_BG{width:100%;Height:100%;position:fixed;Display:Block;Top:0; Left:0;background:#000;Filter:APHA (opacity=50);-moz-opacity:0.5;Opacity:0.5;Z-index: +;}. Crm_tc_box{width:300px;Min-height:200px;Max-height:300px;Overflow-x:Hidden;overflow-y:Auto;Display:Block;position:Absolute; Left:50%;Margin-left:-150px;Top:50%;Margin-top:-100px;Z-index:1001;background:#fff;}HTML code does not show hidden layers by defaultDivID= "Card_popup"s
Start to study responsive web design. css3 media queries is an entry.
Media queries allows you to add expressions to determine the media environment and apply different style sheets. In other words, it allows us to change the page layout without changing the content to precisely adapt to different devices.
How does media queries work?
Either way, you can determine the device size directly in the link and then reference different
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn zik.pdf is a free open-source, concise, easy-to-use, and small Chinese front-end development framework. Founded in 2013 and complies with the Apache2 open-source protocol, this service allows you to quickly develop a metro-style responsive webpage. Zikhei was born to simplify the development of front-end developers. It will always adher
Here, make a pop-up layer with arrows.1, if the browser does not support CSS3, we can use border simulation. But this time the arrows can not have a border, that is, solid color, not very good, this time we could use two B tags to achieve:First you need to make an upward arrow, the color of the arrows is the color of the pop-up layer border, other directions can be imitated.. arrow-outer{width:0px;height:0px;display:block;border-bottom:10px solid #AFAFAF; border-left:10px Solid transparent;borde
Fills the entire viewport with Background-size:cover in CSSAttention:A background image of the 5000px*5000px in the PC-side scaling is basically meet the requirements will not appear fuzzy distortion;But using such a large picture on the mobile side is a waste of resources, and a large map can slow loading, especially under the mobile network.A relatively small picture can be set on the mobile side using media queriesbody{/*loading the background map*/background-image:url (images/background-phot
code example: @media only screen and (min-width:320px) {html {font-size:8px!important;}. mulu-zi{position:absolute;top:18px!important;left:18%;color: #000000;}} @media only screen and (min-width:375px) {html {font-size:10px!important;}. mulu-zi{position:absolute;top:12px!important;left:18%;color: #000000;}} @media only screen and (min-width:414px) {html {font-size:11px!important;}. mulu-zi{position:absolute;top:8px!important;left:18%;color: #000000;}}Code writing methods for styles in
The following CSS content is loaded when the maximum screen width of the device is less than 1024px@media screen and (max-width:1024px) {body{width:1024px;}#main {Background-image:url (img/bg1.jpg);}}All represents all types of devices@media all and (max-width:1024px) {body{width:1024px;}#main {Background-image:url (img/bg1.jpg);}}Shorthand@media and (max-width:1024px) {body{width:1024px;}#main {Background-image:url (img/bg1.jpg);}}Operations can be p
Based on the design draft, assuming that the design of the vertical screen width of 750px, take the root element of the font-size is 50pxUnder Iphone6 (375px), Devicewidth=7.5rem, this is the devicewidth in viewport,So the FontSize calculation formula is font-size=devicewidth/7.5 50px, so we can set the font-size of the iphone6 under HTML to 312.5%.On a device of this size, if you want to set the font size of a P element to 18px, you can set it to 0.36remIn IPhone5S 320px, proportionally convert
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.