Code Monkey home page Code Monkey logo

2017's People

2017's Issues

日常遇到的问题

#1|、border-radius遇到transform,overflow:hidden失效
解决方案:在父类中用mask-image
-webkit-mask-image:url(../img/zhez.png);
-webkit-mask-size: 5.22rem 5.22rem;
原文http://blog.csdn.net/w20101310/article/details/52298636
#2|、动态生成元素的点击事件$(document).on("click",function(){})在andriod设备和电脑浏览器模拟上可以触发,而在apple移动设备上却无法触发。
解决的方法是添加一个css
cursor: pointer
#3、在页面中文字增加到一定数量,或者文字大小设置为某一个值时,页面中的文字字号会突然变大,超出自己设置的字号大小。
虽然我设置的字号大小是24px,但是在computed下却是28.7px
body *{ max-height: 999999px; }
#4、label元素和对应id的input元素是互相绑定的,也就是说点击label就相当于点击了input。
ffg0kg304l_s6yr_b 5uz9
t52i r7 2r8 r n 2 l 8

#5、border: .01rem solid red;有的安卓机不显示边框
#6、用到ul li:nth-child(odd) { margin-right: .16rem;}时,程序在li与li之间写代码nth-child(odd)会不起作用
#7、上传图片插件在有些手机中只显示拍照不显示相册;去掉input中的capture="camera"
image
#8、padding-top & padding-bottom 这两个css属性,父节点没有固定高度,他们就会参照父节点的宽度来设置自己的百分比;
#9、:target伪类的作用是突出显示活动的HTML锚

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.