Tag : css3

document.querySelector(‘body’).addEventListener(‘touchmove’, function(e) { if (! document.querySelector(‘.articleBox’).contains(e.target)) { e.preventDefault(); } }) Now this writing can still be displayed. What should I do with it? articleBox is the part that needs to be scrolled. If a block that does not need to be scrolled can be positioned as fixed in ios WeChat, the block will not drop ..

Read more

https://jsfiddle.net/channg/j … Why does display:flex change the width of the box it uses? Changed flex:-webkit-box, will the box behind be pushed out? Stackoverflow porter 1 Stackoverflow porter 2 display: box;Flex 2009display: flexbox;Flex 2011display: flex;The current version Because of the version problem, you cannot simply change itdisplay: flexFordisplay: -webkit-box There is also a need toflex-grow: 1instead-webkit-box-flex: ..

Read more

The front-end newcomer recently followed an online entry project to learn. The following problems were encountered:This element is the button picture to the left of the carousel.The original picture isWhy does the original image have a size of 50px and a setting of 21px not compress the original image but the left part of reality? ..

Read more

Want to askSuppose chinese numerals and so onI set div block as width:200px; height:200px; overflow-y:auto; overflow-x:hidden; If the height exceeds 200px, the right scroll will appear, which is no problem.But when the content of div block is in English … it will overflow! Completely exceeding width 200px;And the right scroll will disappear (it can still ..

Read more