css3

Flexbox item with overflowing content only works on Chrome

天大地大妈咪最大 提交于 2019-12-30 17:56:53
问题 Please take a look at this pen: https://codepen.io/linck5/pen/gRKJbY?editors=1100 body{ margin: 0;} .container { width: 100%; height: 100vh; display: flex; flex-direction: column; } .top-bar { background-color: darksalmon; height: 50px; } .inner-container { flex: 1; background-color: chocolate; width: 100%; height: 100%; display: flex; flex-direction: column; } .top { background-color: blueviolet; flex: 1; overflow: auto; font-size: 40px; line-height: 5rem; } .bottom { background-color:

使用CSS3打造的精美特效盘点,部分有中文制作教程及源码

試著忘記壹切 提交于 2019-12-30 17:44:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CSS3可以帮你完成很多你意想不到的东西,有些甚至瞬间秒杀了你的眼睛。如果你对 WEB前端感兴趣,为何不尝试自己用CSS3弄个小玩意儿,分享给你的朋友?其实我想表达的是,CSS3可以充分挖掘你的想象力,因为它给了你更大的遐想 空间。不信?来看看下面几个精彩的CSS3特效吧,有些附有中文制作教程和源码,希望大家会喜欢。 1、 CSS3 Windows 7开始菜单制作教程及示例和源码 2、 CSS3 让文字按路径显示 这个是让你的一行文字按某个路径轨迹显示,打破了传统横平竖直的显示方式 3、 CSS3 各种图形的绘制(矩形、圆形、三角形、多边形、爱心、八卦) 这个真的很棒,尤其是最后一个八卦,用chrome能看到全部的效果,高版本的firefox也能看全部 4、 CSS3结合jQuery实现的动态时钟 【附制作过程】 5、 3个非常酷的CSS3 Loading动画 主要是3个CSS3 Loading动画的制作过程及在线演示和源码下载 6、 彪悍的CSS3人物行走动画 可别认为这个行走动画是flash动画,他是纯 CSS3 做出来的。 7、 CSS3机器猫【这个比较老了,不过真的很经典】 这只机器猫可都是纯CSS3做出来的哦,非常棒! 上面的CSS3动画或者特效是否让你震撼?如果觉得不错,赶紧推荐给你的朋友吧

Why does Visual Studio 2013 recognize CSS3 display: flexbox, but not flex?

牧云@^-^@ 提交于 2019-12-30 17:28:13
问题 On my CSS pages Visual Studio doesn't recognize flex, claiming it's not valid: div { display: flex; display: inline-flex; } It does however recognize flexbox : div { display: flexbox; display: inline-flexbox; } Flexbox does not seem to be supported in any of the main browsers, yet flex is. Can anyone explain this? Thanks. 回答1: VS2013 needs to have Update 5 installed and that will fix the CSS validation issue. 回答2: flex and inline-flex were , at one point in time, flexbox and inline-flexbox

How to add a icon inside a spinner

99封情书 提交于 2019-12-30 13:49:12
问题 I'm able to do this if I'm able to freely modify the html, but the problem is I'm restricted to using a this one specific layout to make this spinner. The spinner that I want to make is something like this, There is the pink spinner which goes around and around the grey path and an icon in the middle which stays still. The problem is I have to get the above spinner to work with just this html layout Only a div <div class="spinner"></div> Div with an icon inside. <div class="spinner"> <i class

turning an image into css

雨燕双飞 提交于 2019-12-30 13:01:30
问题 I have this image (attached). I am not a designer but I do not want to use the image in my app. I heard you can come very close to an image using css. Can someone help me with this image and turnning into a css equivalent thanks! TRIED <span class="xyz"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <polygon points="0,0 100,0 100,40 0,40 20,20" style="fill:#46b"/> </svg> text </span> Not sure how to add that to my current css ALSO TRIED display: block; clear: both; width: 70%; height

turning an image into css

穿精又带淫゛_ 提交于 2019-12-30 13:01:21
问题 I have this image (attached). I am not a designer but I do not want to use the image in my app. I heard you can come very close to an image using css. Can someone help me with this image and turnning into a css equivalent thanks! TRIED <span class="xyz"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <polygon points="0,0 100,0 100,40 0,40 20,20" style="fill:#46b"/> </svg> text </span> Not sure how to add that to my current css ALSO TRIED display: block; clear: both; width: 70%; height

Edge customize cursor doesn't work

喜夏-厌秋 提交于 2019-12-30 13:00:48
问题 Below is my code, cursor1.cur icon is under the same root folder as index.html. The cur icon can be downloaded from this link: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/cursors/cursor1.cur It works well in IE11, but doesn't work in Edge. Can anyone help me? Update: if replace cursor1.cur with url: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/cursors/cursor1.cur. It works in Edge as well. But still I'd like to know how to use relative path in

CSS - Animate object in curved path

陌路散爱 提交于 2019-12-30 12:53:46
问题 I just want to animate my image through curved path. Like this way. ( I'm using position absolute for positioning. ) Did some research and found that css transform can do the job. It can be easily done by straight line. But curved path? I tried to combine with css transform-origin + transform:rotate but I didn't get exact that I want. Clearly I want to move around 80% to the left curved and need to come to original position. I tried so many times adjusting my code but still no luck. Fiddle P

Is it possible to make certain parts of an image transparent in HTML5/CSS

故事扮演 提交于 2019-12-30 12:24:14
问题 I want to have an image on my page that has certain parts that are transparent, but not all of it. Is it possible to make just certain parts of an image/div transparent? For example, just a circle in the bottom right corner, or the top right portion? 回答1: Here is another CSS option. It simulates a transparent area within an image by sharing a fixed background with background-size:cover on both the background and the circle . This technique also creates interesting effects when used for other

Is it possible to make certain parts of an image transparent in HTML5/CSS

蓝咒 提交于 2019-12-30 12:24:04
问题 I want to have an image on my page that has certain parts that are transparent, but not all of it. Is it possible to make just certain parts of an image/div transparent? For example, just a circle in the bottom right corner, or the top right portion? 回答1: Here is another CSS option. It simulates a transparent area within an image by sharing a fixed background with background-size:cover on both the background and the circle . This technique also creates interesting effects when used for other