如果您对html–CSS3MoonEclipse形状感兴趣,那么本文将是一篇不错的选择,我们将为您详在本文中,您将会了解到关于html–CSS3MoonEclipse形状的详细内容,我们还将为您解答h
如果您对html – CSS3 Moon Eclipse形状感兴趣,那么本文将是一篇不错的选择,我们将为您详在本文中,您将会了解到关于html – CSS3 Moon Eclipse形状的详细内容,我们还将为您解答html图形状的相关问题,并且为您提供关于balloon.css-纯CSS3简单实用的tooltips工具提示效果库_html/css_WEB-ITnose、Clippy – 轻松绘制 CSS clip-path 裁剪路径工具_html/css_WEB-ITnose、configuration for eclipseME plugin in eclipse 3.1[eclipse ME 在eclipse 3.1中的配置(以MOTO为例)]、CSS3 ::selection选择器_html/css_WEB-ITnose的有价值信息。
本文目录一览:- html – CSS3 Moon Eclipse形状(html图形状)
- balloon.css-纯CSS3简单实用的tooltips工具提示效果库_html/css_WEB-ITnose
- Clippy – 轻松绘制 CSS clip-path 裁剪路径工具_html/css_WEB-ITnose
- configuration for eclipseME plugin in eclipse 3.1[eclipse ME 在eclipse 3.1中的配置(以MOTO为例)]
- CSS3 ::selection选择器_html/css_WEB-ITnose
html – CSS3 Moon Eclipse形状(html图形状)
我之前很容易做到:但事情是我不想在灰色区域有一个坚实的元素(参见JSfiddle – http://jsfiddle.net/aUdLr/2/)
div{ width: 100px; height: 100px; background-color: red; border-radius: 100%; position: relative; } div:before{ content: ""; width: 100%; height: 110%; background: gray; position: absolute; left: 5px; top: -5%; border-radius: 100%; }
解决方法
div{ width: 100px; height: 100px; border-radius: 100%; border-width: 0; border-left:solid 10px red; }
科学上不准确的例子:http://jsfiddle.net/aUdLr/4/
请记住,外形不是一个完美的圆形,因为边框被添加到宽度.您可以通过减小宽度或使用Box-sizing: Border-box
进行补偿.
balloon.css-纯CSS3简单实用的tooltips工具提示效果库_html/css_WEB-ITnose
简要教程
balloon.css是一款实用纯CSS3制作的简单实用的tooltips工具提示效果库。该tooltips通过简单的设置可以实现在不同位置显示提示框,根据内容的多少来自动设置提示框的大小,它还可以显示unicode编码和Font Awesome字体图标等。
查看演示 下载插件
使用方法
立即学习“前端免费学习笔记(深入)”;
实用该工具提示效果需要在页面中引入balloon.css或balloon.min.css文件。
tooltips的位置
可以通过data-balloon-pos属性的设置来实现不同tooltips的位置的定位。可选值有:up, down, left 或 right。
tooltips的长度
默认情况下,tooltips总是会显示在一行中,你可以通过data-balloon-length属性来修改默认的行为。可选值有:small,medium, large 或 fit。
使用字体图标
你可以在tooltips中添加任何的HTML字符或第三方的字体图标。
也可以添加Font Awesome字体图标。
balloon.css的github地址为: https://github.com/kazzkiq/balloon.css
Clippy – 轻松绘制 CSS clip-path 裁剪路径工具_html/css_WEB-ITnose
clippy 是一个 css clip-atch 属性绘制工具,使用它可以轻松绘制不同的几可形状的。
clip-path 是 CSS 中的一个裁剪属性,用于裁剪元素,通过此属性可以实现类似PS蒙版一样效果。若使用 clip-path 制作多边形的裁切图案,需要计算坐标位置,如:
.element { clip-path: polygon(x1 y1, x2 y2, x3 y3, …); }
从代码可以看出,计算这个坐标是相当麻烦的,所以使用 Clippy 就解决这个问题。
立即学习“前端免费学习笔记(深入)”;
网站名称:Clippy
网站地址: http://bennettfeely.com/clippy/
使用 TIPS
1. 按住其中一个颜色点,下方代码会自动提醒该点的坐标位置。
立即学习“前端免费学习笔记(深入)”;
2.选择右侧图形的「Custom Polygon」可以自己画形状。
需要注意的是,小编在测试时,有时候无法自定义,需要刷新下浏览器才正常。
自定义形状:
立即学习“前端免费学习笔记(深入)”;
3. 点击 codepen LOGO 图标,可以跳到 Code Pen 上 编辑,非常方便!
立即学习“前端免费学习笔记(深入)”;
configuration for eclipseME plugin in eclipse 3.1[eclipse ME 在eclipse 3.1中的配置(以MOTO为例)]
- install eclipseME plugin
- install sun''s wireless tool kit 2.1 or other compatible toolkits
- enter windows->preference->platform components, right click wireless ToolKits and select add..... Select the right directory(sample: C:/WTK21)
- for Moto SDK,
- you may choose to add one profile. sample(MOTOM1--add midp.zip in M1 lib as external jar)
- Add platform definition. Sample(MOTOM1--select the profile MOTOM1)
- Enter Run->External Tools->External Tools.. and create a new configuration by clicking button(NEW) Parameters are set as below sample for V600(j2me-v600):
- Location: C:/Program Files/Motorola/SDK v4.3 for J2ME/EmulatorA.1/bin/emujava.exe
- working directory: c:/Program Files/Motorola/SDK v4.3 for J2ME/EmulatorA.1/bin
- arguments: ${project_loc}/deployed/${project_name}.jad -deviceFile resources/V600.props
- you may get working information by run "C:/Program Files/Motorola/SDK v4.3 for J2ME/launchpad.exe"
- To create a new J2ME project, you may first create a j2me project and then create a midlet
- To test it with MOTO V600 simulator, you need to create the package first and then select run->external tools->j2me-v600
- To test it with sun''s simulator, just enter run->run as->Emulated J2ME Midlet
原文链接: http://blog.csdn.net/swingseagull/article/details/711979
CSS3 ::selection选择器_html/css_WEB-ITnose
之前看到有些网站选中内容的颜色和背景色都不是平时看到的蓝色和白色。今天有兴趣查看了一下,原来是一个很简单的css3的选择器::selection的用法。
上例子:
<style> .selectColor::selection{color:#fff;background:pink;} .selectColor::-moz-selection{color:#fff;background:pink;} .selectColor::-webkit-selection{color:#fff;background:pink;}</style><body> <p>普通文本,不设置::section,选中时文本的颜色为白色,背景色为蓝色</p> <p>选择文本的颜色为白色,背景色为粉色</p></body>
只能向::selection选择器应用少量CSS属性:color、background、cursor以及outline。
立即学习“前端免费学习笔记(深入)”;
浏览器支持:
IE9+、Opera、Google Chrome 以及 Safari 中支持 ::selection 选择器。
Firefox 支持替代的 ::-moz-selection。
今天关于html – CSS3 Moon Eclipse形状和html图形状的分享就到这里,希望大家有所收获,若想了解更多关于balloon.css-纯CSS3简单实用的tooltips工具提示效果库_html/css_WEB-ITnose、Clippy – 轻松绘制 CSS clip-path 裁剪路径工具_html/css_WEB-ITnose、configuration for eclipseME plugin in eclipse 3.1[eclipse ME 在eclipse 3.1中的配置(以MOTO为例)]、CSS3 ::selection选择器_html/css_WEB-ITnose等相关知识,可以在本站进行查询。
本文标签: