修改博客园模板样式

当我们注册博客园以后,首先是选择自己喜欢的首页模板,当我们对博客园给出的模板不满意时,我们就要对已有的模板进行修改。

在这里我采用的模板是SimpleMemory,因为SimpleMemory模板相对简单,便于对样式已有的修改。

这是本人修改两句代码后的修改

详细步骤:

1.寻找自己喜欢的图片,要求图片足够清晰,以免设置背景时不清楚。博客园首页->管理->相册->设置标题(相册名)->ADD->选择文件(上传图片)->ADD,单击图片进入首页,点击Original Image得到图片链接。

2.选择好模板以后进入自己博客首页,右击屏幕单击检查(本人用的是谷歌浏览器)进入,进入后点击左上角箭头单击<body>,这时在右边就会出现body样式,在这里我们可以修改样式,并在页面中看的效果,一旦刷新页面就会恢复原来效果,我只是添加了一句用于设置页面背景代码“ background: url(//images.cnblogs.com/cnblogs_com/minong/1296159/o_2212212564-11.jpg) fixed;”图片链接由上面获得。

3.复制代码到设置(博客园首页->管理->设置)里面,实现背景设置,在里面写的样式会覆盖已有的样式。

4.修改其他样式同理,例如:

#home {
margin: 0 auto;
opacity: 0.8;
width: 65%;
min-width: 1080px;
background-color: #fff;
padding: 30px;
margin-top: 50px;
margin-bottom: 50px;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}

修改透明度只是在原有的基础上改了一句代码

 

标签: css样式
6
0

» 下一篇: php语言查询Mysql数据库内容
posted @ 2018-09-08 18:59  minbk5718  阅读(2965)  评论(6编辑  收藏

#1楼 2019-03-23 11:50 Meiwah
你的主题很酷
#2楼 2019-09-29 16:00 尘酱很甜
#3楼 [楼主] 2019-10-16 11:41 minbk5718
@ Meiwah
我的主页只适合白天,晚上打开很差。
#4楼 2019-10-16 16:09 Meiwah
@ minbk5718
嘻嘻,写个脚本,日夜切换不同的主题啊(不是
#5楼 2019-11-10 14:26 WindEyes
博主这个艺术感有点强
#6楼 2020-02-06 14:36 黄棕熊
..

Hive查询与内置函数的应用

//显示Hive内置函数

show functions;

 

//查询多个字段用逗号分隔

select name, money from sale limit 10;

 

//数值类型可以进行加减乘除

select money + 1 from sale limit 10;

 

//平方

select pow(money,2) from sale limit 10;

 

//模(取余)

select pmod(mon+1,2) from sale limit 10;

 

//强制类型转换

select cast(money as double) from sale limit 10;

select cast(money as double) from sale where cast(substr(time,9,2) as int) >=7 and cast(substr(time,9,2) as int) <=9

 

//统计前10条的数据的个数

select count(*) from sale limit 10;

 

//将string类型的值连接起来

select contact(id, age) from sale limit 10;

 

//查询json格式的数据

Select get_json_object(‘{“name”:“zhangsan”,“age”:“18”}’,‘$.age’) from sale;

 

//字符串的长度

select length (id) from sale limit 10;

 

//查询字uid中第9个位置之后字符串ee第一次出现的位置

select locate (“ee”,id,9) from sale limit 10;

 

//表的嵌套(具体实现功能自己编写,可以分组,排序,多次嵌套等等)

select count(distinct t.id) as cn from (select * from sale where price <= 300 and order = 1) t;

 

select t.id from(select uid,count(*) as cn from (select * from sale where price <300)e group by e.id having cn>2) t;

 

select id,count(*) as cn from sale group by id, keyword having cn>=3 and keyword like ‘%浅浅%’;

 

select id,count(*) as cn from sale  where keyword like ‘%浅浅%’ group by id, having cn>=3; //(先过滤再分组)

 

//like的使用,模糊查询,%表示任意长度的字符

select * from a where url like ‘http%’ limit 10;

 

//group by 分组查询

select price, order,count(*) as cn from sale group by price, order;

 

//having分组筛选,必须用于group by分组查询之上

select price, order,count(*) as cn from sale group by price, order having cn>=3;

 

//取出表中的前10行数据放到sale2表中

create table sale2 as select * from sale limit 10;//(sale2不存在的情况下)

insert overwrite table sale2 select * from sale limit 10;//(sale2已经存在的情况下)

 

//join…on,查询两表之间的共同项,相当于两表的交集

select * from sale1 m join sale2 n on m.id=n.id;

select m.id,n.keyword from sale1 m join sale2 n on m.id=n.id;

 

//left outer join…on(左外连接,跟左边的表条目相同,join不上的为null)

select * from sale1 m left join sale2 n on m.id=n.id;

 

//right outer join…on(右外连接,跟右边的表条目相同,join不上的为null)

select * from sale1 m right join sale2 n on m.id=n.id;

 

//降序

select id,count(*) as cn from sale group by id order by cn desc

 

//创建视图

create view 视图名 as select * from 表 where……

 

//删除视图

drop view 视图名

 

posted @ 2020-04-09 22:41  爬墙的小蜗牛  阅读(323)  评论(0)    收藏  举报