我是编程和python的新手.我正在解决一个问题.我找到了解决方案,但似乎太慢了.
if n % 2 == 0 and n % 3 == 0 and\
n % 4 == 0 and n % 5 == 0 and\
n % 6 == 0 and n % 7 == 0 and\
n % 8 == 0 and n % 9 == 0 and\
n % 10 == 0 and n % 11 == 0 and\
n % 12 == 0 and n % 13 == 0 and\
n % 14 == 0 and …Run Code Online (Sandbox Code Playgroud) 我了解到我们可以使用这种语法制作椭圆border-radius.
border-radius: horizontal radius / vertical radius
Run Code Online (Sandbox Code Playgroud)
首先,我试过border-radius: 10px 20px/10px,哪个有效.
然后,我试过border-radius: 20px/10px 10px/10px,它没有用,Chrome Developer Tool强调它是错误的.
困惑和沮丧,我去了MDN,并且更加困惑.
它显示了这样的东西border-radius: 10px 5% / 20px 25em 30px 35em,不是很奇怪吗?虽然他们在评论中提到价值属于/* (first radius values) / top-left | top-right | bottom-right | bottom-left */,但是什么是first radius values.
我调查了一下,看起来更加混乱.我知道我错过了什么,但不知道是什么!