border-radius

Double curved shape

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am currently attempting to generate a 'wavy ghostly bottom' shape. This shape contains two double curves: Although the bottom part of this image I think portrays it in better imagery. My Code My Current Attempt to generate this shape was using pseudo elements and overflow: hidden , although this does not allow for a gradient background (would require a plain background): Attempt 1 - Using Pseudo Elements with overflow hidden .bottom { height: 300px; width: 300px; background: lightgray; position: relative; overflow: hidden; margin-top:

vue - 动态绑定 class

拈花ヽ惹草 提交于 2019-12-03 02:09:43
<template> <div class="todo-item" :class="{'is-complete':todo.completed}" > <p> <input type="checkbox" @change="markComplete"> {{todo.title}} </p> </div> </template> <script> export default { name:'todo', props:["todo"], methods:{ markComplete(){ this.todo.completed = !this.todo.completed console.log(this.todo); } } } </script> <style scoped> .todo-item{ background: #f4f4f4; padding: 10px; border-bottom: 1px dotted #ccc ; } .is-complete{ text-decoration: line-through } .del{ background: #ff0000; color: #fff; border: none; padding: 5px 9px; border-radius: 50%; cursor: pointer; float: right; } <

Pixelated edge around a CSS Circle with overflow: hidden;

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here is the JSFIDDLE of my cat/animation without any drop-shadows to show the problem as clearly as I can. To my understanding this is being caused by the border-radius and possibly due to overflow: hidden; . The owl is not what this question is about , just an example of a similar situation I was in. The jsfiddle/cat is what this question is about, sorry for the mix up! Here is a JSFIDDLE for my cat with an inset box shadow using the blur property of a box-shadow and the pixelated edge is still the same around the eye. The answer on here

Bootstrap, remove responsive from navbar

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So, i have just a simple navbar with Bootstrap : LOGO Menu Messages Paramètres Mes frenks Signaler un bug Conditions générales Check fiddle : jsfiddle I do not want that when you change the size of the window, the navbar is divided into multiple lines. In my example, the dropdown menu and input is placed below. I want the navbar is just crushed up, staying on the same line .. any idea? 回答1: It can be done. Not too complicated actually. I simply downloaded the Bootstrap 3 source code and scanned through their CSS file. They have @media

How can I create a “tooltip tail” using pure CSS?

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just came across a neat CSS trick. Check out the fiddle... .tooltiptail { display: block; border-color: #ffffff #a0c7ff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px; } .anothertail { background-image: url(http://static.jqueryfordesigners.com/demo/images/coda/bubble-tail2.png); display: block; height: 29px; width: 30px; } Cool Trick: How do I get this effect with only CSS? This creates a little arrow/triangle-like effect, a "tooltip tail". This blows my mind! I'm really interested in knowing how this

Bootstrap navbar no border radius?

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to remove the border and round corner from the nav-bar. . navbar - default { - webkit - border - radius : 0 ; - moz - border - radius : 0 ; border - radius : 0 ; } But it does not work, any ideas? HTML, <nav class = "navbar navbar-default" role = "navigation" > <div class = "container-fluid" > <div class = "navbar-header" > <a class = "navbar-brand" href = "#" > Brand </a> </div> <ul class = "nav navbar-nav" > <li><a href = "#" > Home </a></li> <li><a href = "#" > Work </a></li> <li><a href = "#" > Shop </a></li> <li><a

Box-shadow and border-radius bug in Chrome

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been experimenting with CSS3 and found something strange. Heres's the part of DIV style: border:#446429 solid 1px; border-radius:15px; -moz-border-radius:15px; -webkit-border-radius:15px; box-shadow:3px 0px 15px #000000 inset,0px 3px 15px #000000 inset; -moz-box-shadow:3px 0px 15px #000000 inset,0px 3px 15px #000000 inset; -webkit-box-shadow:3px 0px 15px #000000 inset,0px 3px 15px #000000 inset; Rendering in Opera and Firefox are same and perfect: alt text http://i47.tinypic.com/j8egp5.png But Chrome renders shadow outside the border:

3D魔方

匿名 (未验证) 提交于 2019-12-03 00:38:01
.container {width:300px; height:auto;margin:100px auto; position:relative; transform-style:preserve-3d;animation:mymove 8s linear 0.1s infinite; transform-origin: 50% 50%; backface-visibility: hidden;} @keyframes mymove { 0% {transform:rotateX(360deg)rotateY(360deg) translateZ(10em);} 100% {transform:rotateX(-180deg)rotateY(-360deg) translateZ(0em);} } .cell {width:296px; height:296px;position:absolute; top:0;} .div1 {transform:translateZ(150px);} .div2 {transform:rotateY(90deg)translateZ(150px);} .div3{transform:rotateX(90deg)translateZ(150px);} .div4 {transform:rotateY(-90deg)translateZ

SASS - 混合(Mixin)

匿名 (未验证) 提交于 2019-12-02 23:40:02
版权声明:版权所有,未经许可,禁止转载! https://blog.csdn.net/weixin_43031412/article/details/91412760 SASS- 局部文件(Partial) mixin是可以重用的一组CSS声明。mixin有助于减少重复代码,只需声明一次,就可在文件中引用。 可以看出,mixin类似变量,不同的是变量存储值,mixin存储一组css声明。mixin可以传入参数。 要创建一个mixin,可以使用@mixin指令: @mixin mixin-name() { /* css 声明 */ } 一旦创建了mixin,就可以引用它,使用 @include 指令后跟mixin的名称: ... @include mixin-name(); ... 举例说明 mixin的一个常见用法是浏览器厂商前缀。 当浏览器厂商添加新的非标准CSS特性时,通常会标明厂商前缀,表示该特性只在特定浏览器上有效。 例如, -webkit-border-radius 在Chrome和Safari浏览器有效,而 -mozilla-border-radius 在Firefox上有效。 对于这样的特性,通常需要包含所有浏览器的对应特性声明,以便兼容这些浏览器,这里就可以用minxin来实现: @mixin border-radius() { -webkit-border

html/css实现聊天布局

匿名 (未验证) 提交于 2019-12-02 20:32:16
效果图 项目结构 html代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <title></title> </head> <body> <div class="box"> <div class="item left"> <img class="header-img" src="img/img.jpeg" /> <span class="message">爱你呦</span> </div> <div class="chart-timer"> 2019-5-17 </div> <div class="item right"> <img class="header-img" src="img/img.jpeg" /> <span class="message">哈哈哈哈哈</span> </div> <div class="item left"> <img class="header-img" src="img/img.jpeg" /> <span class="message">干嘛呢</span> </div> <div class="item right"> <img class=