css 之 text-align 文本对齐 <style> .box{ background-color: #00ff00; text-align: center; /** 让inner中内容居中对齐,不是对inner的div居中*/ } .inner{ background-color: #9b5 ...
分类:
Web程序 时间:
2020-06-08 00:29:42
阅读次数:
66
感谢@羊毛羊大佬的帮助 CSS .cnblogs-markdown .hljs { display: block; overflow-x: auto; padding: 0.5em; background: #1E1E1E !important; color: #FFF; white-space: ...
分类:
Web程序 时间:
2020-06-07 15:05:34
阅读次数:
90
package erase; import java.util.Scanner; public class 猴子分桃 { public static void main(String[] args) { // TODO Auto-generated method stub //假设每个猴子拿走1个, ...
分类:
编程语言 时间:
2020-06-07 15:01:26
阅读次数:
137
body{ margin: 0 auto; background: #000; font-family: Georgia, Palatino, serif; color: #EEE; line-height: 1; max-width: 960px; padding: 30px; } h1, h2, ...
分类:
其他好文 时间:
2020-06-07 12:52:06
阅读次数:
65
1、越界检查a[2] 数组不会检查越界,vector会检查越界 2、容器中不能存放引用vector, vector<int*>,vector<int&>(这种情况不可以) 引用是个别名,不是对象,不是对象不能往vector中放 3、比较少见的几种创建方式vector a(5, -1); // 初始化 ...
分类:
其他好文 时间:
2020-06-07 12:42:17
阅读次数:
90
Document <style> * { padding: 0; margin: 0; } div { position: absolute; top: 50px; left: 0; height: 200px; width: 200px; background-color: pink; } spa ...
分类:
其他好文 时间:
2020-06-06 18:58:43
阅读次数:
67
<!-- edit by yunecommerce.com add the countdown timer --> <style>#progress_bar{margin-top:15px}.progressbar.progressbar{background:#ffe8e8;border:0px ...
分类:
移动开发 时间:
2020-06-06 18:48:48
阅读次数:
148
css样式中有很多简写方式,比如:设置背景,字体,边框,盒子等。我们都可以把css代码合并为一行,这篇文章将总结有哪些属性支持css简写。 1、背景background属性 background-color:#F00; background-image:url(header_bg.gif); bac ...
分类:
Web程序 时间:
2020-06-06 16:48:08
阅读次数:
66
给view添加 background: url({{item.sku_pic}}) no-repeat center / cover cover 会使图片最大程度展示 background-size:cover ...
分类:
微信 时间:
2020-06-06 14:27:50
阅读次数:
200
###在css中,有盒子背景图片颜色渐变,但是文字颜色渐变确很少提及,主要还是目前浏览器的支持程度还不高,只有在Safari和chrome能起作用 -webkit-background-clip: text; text这个值没有在教程看到,但是可以使用,表示切除文字以外的背景 配合**color: ...
分类:
Web程序 时间:
2020-06-06 12:53:20
阅读次数:
61