select { /*清除select默认样式*/ appearance:none; -moz-appearance:none; -webkit-appearance:none; -ms-appearance:none; border:1px solid #CCC; width:330px; hei ...
分类:
Web程序 时间:
2018-11-21 18:37:38
阅读次数:
241
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <style> .center { margin: auto; width: 60%; border: 3px solid #73 ...
分类:
其他好文 时间:
2018-11-20 20:47:16
阅读次数:
250
(1) 水平居中 a. 行内元素水平居中 因为img是行内元素(行内块级元素也一样)父级元素设置text-align:center即可,例如: <div style="width: 600px; height: 300px; border:1px solid red;text-align: cent ...
分类:
Web程序 时间:
2018-11-19 16:15:35
阅读次数:
245
1、创建一个div,设置样式如下 div{ width: 50px; height: 50px; border-top: 50px solid red; border-bottom: 50px solid yellow; border-left: 50px solid green; border-r ...
分类:
Web程序 时间:
2018-11-17 21:28:52
阅读次数:
1837
了解编程(Programming)概念、计算机组成原理、操作系统(OS)、数据结构(Data Structure)相关基本知识,对之后python语言的学习的应用有至关重要的帮助。 Knowledge is like a net, the more solid and the more it is ...
分类:
其他好文 时间:
2018-11-15 18:31:44
阅读次数:
191
border:100px solid ; box-shadow: inset 0 1px,inset 1px 0px,inset 0 -1px,inset -1px 0px; width:0px; height: 0px; margin:0 auto; /*transparent 透明*/ bord... ...
分类:
其他好文 时间:
2018-11-15 18:31:02
阅读次数:
163
S.O.L.I.D是面向对象设计和编程(OOD&OOP)中几个重要编码原则(Programming Priciple)的首字母缩写。SRP The Single Responsibility Principle 单一责任原则OCP The Open Closed Principle 开放封闭原则LS ...
分类:
其他好文 时间:
2018-11-11 12:15:01
阅读次数:
160
边框 border:边框的意思,描述盒子的边框 边框有三个要素: 粗细 线性样式 颜色 border: solid 如果颜色不写,默认是黑色。如果粗细不写,不显示边框。如果只写线性样式,默认的有上下左右 3px的宽度,实体样式,并且黑色的边框。 按照3要素来写border border-width: ...
分类:
其他好文 时间:
2018-11-10 10:48:06
阅读次数:
160
问题起源: 中文是一个字就是一个单词,而英文字母要有一个空格才将他们分割为一个单词;文字换行没事,主要是英文 <!DOCTYPE html><html><head><style> p.test1{ width:11em; border:1px solid #000000; word-wrap:bre ...
分类:
其他好文 时间:
2018-11-06 14:34:51
阅读次数:
161
咱们话不多说,直接上代码 这是封装了一个函数 在外面直接 border: 1px 0 0 0 #ccc使用即可 border($border-width = 1px, $border-color = #ccc, $border-style = solid, $radius = 0) // 为边框位置 ...
分类:
其他好文 时间:
2018-11-03 23:06:21
阅读次数:
406