lzxb / flex.css Goto Github PK
View Code? Open in Web Editor NEWflex.css is declarative layout which is compatible with wechat, UC, webview and other main-stream mobile browser and surpports react, vue, angular.
flex.css is declarative layout which is compatible with wechat, UC, webview and other main-stream mobile browser and surpports react, vue, angular.
由于flex设置了overflow:hidden,则应用场景为盒子内部的定位元素需要超出盒子就不能显示出来了。
建议用其他清除浮动方式撑起盒子适应内部内容。如:给父元素加伪元素:after,样式清楚浮动就行
应该是升级到npm 升级到5.x版本导致无法兼容到ios!
如题,在自动占满高度的flex里的子元素定义高度100%无效,该如何让子元素的高度等于自动占满高度的元素的高度呢?
既然flex-box="1"
是设置flex
,那为什么没有定义flex-basis
。
因为这个,我给三个元素的头尾两个元素设置flex-box="1"
,希望他们有一样的size,结果因为第一个元素内部有文字内容,所以比最后的元素大。
Demo都下载不了了,可以更新一下吗?
首先很感谢你们。我把dist目录中的flex.css拷贝到了我的本地。然后发现在安卓4.2上不管用。在5.1上是好的。请问这是什么原因。
貌似没 wrap 如何做呢
space-around这个没有吗?
when I use the flex.css,the over:flow:hidden
always make some bug, In some android phone, If the <p><p>
use the flex.css,they alaways was cliped by the flex.css.I hope you can modify the bug. thanks
在使用你的flex.css时,overflow:hidden 经常会造成一些bug,会将div的超出部分裁掉,在一些烂安卓手机上,当给p段落使用时,也会造成段落上面被裁掉的现象,应该也是overflow引起,我可以直接将overflow:hidden注释掉么,这样会不会造成什么问题。希望能抽空改进一些,谢谢!
仅仅只是把该写在css里面的flex,写在html 标签的属性里面吗???
lzxb.name/flex.css/
这份css代码可以去更新一下吗?看了是最新两年前的代码,两年了,flex特性有些更新吧。
你好,在小程序中引入flex报错。您尝试过吗?
./pages/index/index.wxss
error at token "*"
9 | display: flex;
10 | }
11 | [flex] > * {
| ^
12 | display: block;
13 | }
14 | [flex] > [flex] {
微信小程序不支持 [flex] 这种写法
example:
.flex{
display: flex
}
flex.css 不兼容ios8-ios9,怎么办?
BUG 地址: http://106.14.9.70/#/lottery/1
测试机型 ios8.1.1
界面乱了
很奇怪 打包前是可以的 打包后就这样了 prod配置文件也加了 safe: true 找不到bug所在 请大神们指点
dir:top 下 flex-box 中第一个节点,在旧版本 webkit 浏览器中会显示不出来,(英语太差了,还是汉语吧(lll¬ω¬))
加上
[flex~="dir:top"] > [flex-box] > * {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
就可以了,测试机型 万恶的opp vivo
查了很多旧版只支持到ios8.3。
你好;我做了两个项目,都是引入了flex.css 但是有一个项目发现并没有自动添加-webkit-的前缀;导致在ios下有兼容性问题。想知道是为什么?
如题
DEMO 打开有时有点慢,怕有天打不开了、。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.