悬疑电视剧

CSS 圆角

时间秒杀一切 提交于 2019-11-26 18:19:22
css的border-radius属性可以实现圆角、圆形、椭圆形。 实现上述圆角的前提是盒子要有边框。 规则圆角 下面的示例演示了圆角、赛道、圆形,我们先看效果图。 下面是实现的代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < title >圆角</ title > < style > div{ margin:20px; } div.one{ width:50px; height:50px; border:1px solid #333; border-radius:7px; } div.two { width:120px; height:50px; border:1px solid #333; border-radius:50px; } div.three { width:120px; height:120px; border:1px solid #333; border-radius:120px; } </ style > </ head > < body > < h1

CSS 利用border三角形绘制方法

Deadly 提交于 2019-11-26 18:04:47
CSS 三角形绘制方法, 这里面的transparent比较重要 ,有和没有影响很大; 原理:这个div是由4个三角形组成,每个三角对应一个border,隐藏其它3个border,就可以得到一个三角形。 复制代码 代码如下: #triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; /*border: 50px solid transparent 两种效果一样*/ border-bottom: 100px solid red; } 上下左右的到简单,直接border-后面四个相互变,上面都是border: 50px solid transparent 即可 复制代码 代码如下: #triangle-down { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid red; } 复制代码 代码如下: #triangle-left { width: 0; height: 0; border-top: 50px solid

pyqt 精美样式

╄→尐↘猪︶ㄣ 提交于 2019-11-26 16:06:59
样式(复制来的) 复制粘贴用 QLabel {color:white; font-family: 宋体;font-size:12px;border:none;text-align:center;} QLabel:disabled {color:gray;} QLineEdit {color:black; font-family: 宋体;font-size:12px;text-align:center;} QPushButton {font-family: 宋体;font-size:12px;text-align:center;} QComboBox {font-family: 宋体;font-size:12px;} QToolTip { border-radius: 3px; } QMessageBox { border-color:#32435E; border-width:1px; border-radius: 3px; min-width:30px; min-height:23px; /*font-family:"宋体";font-size:36px;*/ border-image:url(./config/qss/style_1/images/messageBox_background.png); height: 300px; width: 200px; border: