border

CSS实现圆角DIV

霸气de小男生 提交于 2020-01-09 03:30:27
代码 <! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.0 Transitional//EN " " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " > < html xmlns = " http://www.w3.org/1999/xhtml " > < head > < meta http - equiv = " Content-Type " content = " text/html; charset=utf-8 " /> < title > 纯css圆角div </ title > </ head > < body > < div style = " margin:0 4px; background:#B0BEC7; height:1px; overflow:hidden; " ></ div > < div style = " margin:0 2px; border:1px solid #B0BEC7; border-width:0 2px; background:#E1E7E9; height:1px; overflow:hidden; " ></ div > < div style = " margin:0 1px; border:1px solid

C# WPF 时钟动画(2/2)

我的梦境 提交于 2020-01-08 16:39:11
模拟实现时钟效果,学习WPF动画好例子,本文承接上文 C# WPF 时钟动画(1/2) 。 微信公众号: Dotnet9 ,网站: Dotnet9 ,问题或建议: 请网站留言 , 如果对您有所帮助: 欢迎赞赏 。 C# WPF 时钟动画(2/2) 内容目录 实现效果 业务场景 编码实现 本文参考 源码下载 1.实现效果 时钟实时展示系统本机时间 2.业务场景 模拟时钟 3.编码实现 使用 .Net Core 3.1 创建名为 “Clock” 的WPF解决方案,解决方案中需要添加时钟背景图片,图片如下: https://github.com/Abel13/Clock/blob/master/Clock/Assets/clock.png 3.1 主窗体 MainWindow.xaml 使用3个Border布局时钟的时针、分针、秒针,并给3个指针添加动画,动画说明如下: 时针每12个小时循环一圈(360°),每个小时旋转30°(30°*12=360°); 分针每60分钟循环一圈(360°),每分钟旋转6°(6°*60=360°); 秒针每60秒循环一圈(360°),每秒钟旋转6°(6°*60=360°),并且秒针旋转6°有个轻微的摆动动画。 <Window x:Class="Clock.MainWindow" xmlns="http://schemas.microsoft.com

C# WPF 时钟动画(1/2)

て烟熏妆下的殇ゞ 提交于 2020-01-08 15:10:01
微信公众号: Dotnet9 ,网站: Dotnet9 ,问题或建议: 请网站留言 , 如果对您有所帮助: 欢迎赞赏 。 C# WPF 时钟动画(1/2) 内容目录 实现效果 业务场景 编码实现 本文参考 源码下载 1.实现效果 目前只实现了秒针动画,下篇文章实现完整效果,可在网站上查看,微信公众号今天只发布了一篇。 效果 2.业务场景 玩具 3.编码实现 工程简单,只更改一个主窗体文件,另加一个时钟背景图片 3.1 主窗体 MainWindow.xaml 布局时钟的时针、分针、秒针,及添加秒针动画,秒针动画写的比较啰嗦,只写了30秒,其实可以在MainWindow.xaml.cs文件中用for循环添加EasingDoubleKeyFrame,直接添加到xaml中占代码也不美观,暂时先这样吧,下篇文章有空改了。 <Window x:Class="Clock.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http:/

javascript图片轮换2

[亡魂溺海] 提交于 2020-01-08 04:29:56
图片轮换是一种相当复杂的技术,早些年基本用flash实现。这里有一个 链接 ,教大家如何用flash实现它的。之所以用flash,是因为flash是基于帧的,这与图片轮换的原理相当接近。为了模拟帧的效果,我们要用到overflow把多余的部分遮罩掉,也就是flash中常说的遮罩层。在Flash中,连时间轴都是可视的,而我们则全凭想象力与数学来计算现在是到了哪一张图。加之,flash有Robert Penner大神的缓动公式,那实在太耀眼,直到script.aculo.us类库搞出自己的缓动公式,才扭转局面。 我们来看一看图片轮换的结构层。它应该包含框体,图片展示区,图片滑动层与分页栏。原谅我制造这么多词汇,因为没有个名词讲解就难以为继了,前人也没有做这样的总结,个个都不愿意分享一下。框体就是一个div元素,作用有两个:提供相册的边框与作为分页栏的包含块。如果不清楚什么叫包含块(containing block)的话,自己查阅CSS权威指南吧。接着下来图片展示区与图片滑动层,也就是我实现 新式无缝滚动 的那一种结构,一个很干净的无序列表,所有难点都转移到设置它的CSS上。至于图片展示区就是ul元素,大小为一张图片的大小;图片滑动层就是那个li元素,也只有一个li元素而已,利用CSS强制把它里面的图片不换行向左浮动,并设置li元素一个很大很大的宽度,好让它一行容纳所有图片

常规流( Normal flow )

大憨熊 提交于 2020-01-08 03:21:46
格式化上下文( Formatting context ) 格式化上下文指的是初始化元素定义的环境。包含两个要点,一个是元素定义的环境,一个是初始化。 在 CSS 中,元素定义的环境有两种,一种是块格式化上下文( Block formatting context ),另一种是行内格式化上下文( Inline formatting context )。 这两种上下文定义了在 CSS 中元素所处的环境,格式化则表明了在这个环境中,元素处于此环境中应当被初始化,即元素在此环境中应当如何布局等。 以上解释专业点的说法是:在常规流中的框,都属于一个格式化的上下文中。 这个上下文可能是块的,也可能是行内的,但不可能同时是行内的又是块的。块框 1 参与块格式化上下文。行内框 1 参与行内格式化上下文。 注: 关于块框和行内框,请参见 W3C CSS2.1 - 9.2 Controlling box generation 块格式化上下文( Block formatting context ) 触发方式 浮动元素、绝对定位元素,'display' 特性为 "inline-block","table-cell", "table-caption" 的元素,以及 'overflow' 不是 "visible" 的元素,会创建新的块格式化上下文。 浮动元素 绝对定位元素 行内块元素 单元格 表格标题元素

CSS模块化:less

和自甴很熟 提交于 2020-01-08 01:36:11
less的安装与基本使用 less的语法及特性 一、本地使用less的方法 Less (Leaner Style Sheets 的缩写) 是一门向后兼容的 CSS 扩展语言。是一种动态样式语言,属于css预处理语言的一种。 下载后找到less.js:less.js-2.5.3\dist\less.js 也可以直接使用CDN缓存: < script src ="http://cdnjs.cloudflare.com/ajax/libs/less.js/2.5.3/less.min.js" ></ script > 注意link的rel属性: < link rel ="stylesheet/less" type ="text/css" href ="styles.less" /> 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 7 <title>Document</title> 8 <link rel="stylesheet/less"

Magento 2.0

大憨熊 提交于 2020-01-07 15:33:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Overview Accept payments in Magento 2 using the Alipay Cross-border Website Payment Gateway. Advanced & deeply integrated by Alipaymate.com (Certified Alipay Open Platform Developer) Detail This extension allows you to accept payments made via the Cross-border Website Payment gateway of Alipay. The extension supports all of the 16 currencies, and Fully support CNY(RMB) price for checkout. It is easily installed in your shop, without having to make any changes to the source code. Features Use Alipay Asynchronous Notification to ensure order status consistent

Inside transparent arrow on the top

半城伤御伤魂 提交于 2020-01-06 21:02:48
问题 I would like to make a transparent arrow over an image. This triangle should be indented in a block and show the background image. Desired output: I used skewX() property that @web-tiki had explained here but I want it to display on the top of the border rather than on the bottom of image and have this issue: A fiddle demo of my code is available here Can anyone tell me why it's not working in my case? 回答1: As stated in the question, your case is a bit different from the example that was

CSS dashed border always appears white in IE8, why?

点点圈 提交于 2020-01-06 20:00:53
问题 Here is the deal, I have following div with dashed borders: .dashed-header { /*background-color: transparent;*/ height: 87px; margin-top: 5px; border-top: 1px dashed #613e27; border-bottom: 1px dashed #613e27; } for some reason border is white instead of #613e27 and I have no idea why it is so? Here is my webpage You can see this border in dark brown header line. 回答1: Try using: border-color: #613e27 !important; 回答2: I have IE8 and it work fine, I put it inside another div to see if the color

How to create custom border design in css

不打扰是莪最后的温柔 提交于 2020-01-06 15:19:56
问题 First of all see the below image I have tried that center border along with all sections. But can't get idea about the little rounds in border at start of border,end of border and every sections. See the result that i tried in below image Posted sample of code here HTML: <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 work_container"> <div class="work_content"> <div class="work_content_img"> <img src="https://s-media-cache-ak0.pinimg.com/736x/c7/2f/9a/c72f9a9fb1bfca41d0eabdc07f2f1815.jpg"