惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
W
WeLiveSecurity
IT之家
IT之家
A
About on SuperTechFans
B
Blog
L
LangChain Blog
H
Help Net Security
Engineering at Meta
Engineering at Meta
Recent Announcements
Recent Announcements
Google Online Security Blog
Google Online Security Blog
宝玉的分享
宝玉的分享
MyScale Blog
MyScale Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
N
News and Events Feed by Topic
Schneier on Security
Schneier on Security
GbyAI
GbyAI
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Cloudbric
Cloudbric
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
S
Security Affairs
The Last Watchdog
The Last Watchdog
H
Heimdal Security Blog
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Privacy & Cybersecurity Law Blog
V
Visual Studio Blog
H
Hacker News: Front Page
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
L
Lohrmann on Cybersecurity
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
C
Cybersecurity and Infrastructure Security Agency CISA
AWS News Blog
AWS News Blog
Jina AI
Jina AI
N
News | PayPal Newsroom
S
Schneier on Security

博客园 - 往事如风

抓取之近似网页过滤 Hadoop 2.4.1 登录认证配置小结 Window中调试HBase问题小结 改了改博客界面 Hbase0.98.4/Hadoop2.4.1整合小结【原创】 Hadoop 2.4.1 Map/Reduce小结【原创】 hadoop的dfs工具类一个【原创】 简化 Hadoop 2.4.1 Eclpse 插件编译【原创】 Hadoop 2.4.1 设置问题小结【原创】 spring的自动装配导致quartz出问题【原创】 关于用jsp生成xml的问题【原创】 - 往事如风 - 博客园 spring的单例导致webwork文件上传出现问题【原创】 resin版本导致的webwork2.2.4找不到xwork.xml【原创】 Gel备注【原创】 struts的action直接输出中文备注【原创】 - 往事如风 - 博客园 iframe高度处理【原创】 网上流行的flash切换图片之研究【原创】 FreeMarker生成xml的教训【原创】 图解MyEclipse配置struts+hibernate+spring+FreeMarker【原创】
基情四射的两个css样式
往事如风 · 2014-08-07 · via 博客园 - 往事如风

  自定义blog样式时,代码段的line-height继承样式post的line-height,间隔太大了,决定再减小点,css都玩了几年了,感觉中这是很容易的事情。然后,就悲剧了好久,原先自定义样式表为

.headermaintitle {
    font-family:"华文行楷",Verdana,Arial,Helvetica,sans-serif;
    font-size:50px;
}
.headerDis {
    font-family:"华文行楷",Verdana,Arial,Helvetica,sans-serif;
    font-size:20px;
    text-align:center;
}
body {
    font-size:12px;
}
.mySearch {
    display:none;
}
.postCon {
    font-size:12px;    
}
.c_b_p_desc {
    line-height:24px;
}
.day {
    margin-bottom:0;
}
.day center {
    display:none;
}
.postSeparator {
    display:none;
}
#left_border {
    height:auto;
}
#footer {
    display:block;
    text-align:center;
    padding:30px 0px 15px 0px;    
}
.post {
    font-size:12px;
    line-height:26px;
}
#cnblogs_post_body p {
    margin:0;
    padding:0;
}
#cnblogs_post_body a {
    color:blue;
}
#author_profile {
    display:none;
}
div.commentform textarea {
    width:100%;
}
.commentbox_title {
    width:100%;
}
#commentbox_opt {
    text-align:right;
}
#ad_under_post_holder {
    display:none;
}
.c_ad_block {
    line-height:20px;
}
#site_nav_under,#blog_news_kb {
    display:none;
}
.feedbackItem {
    border-bottom:1px dashed #ccc;
}
.feedbackCon {
    background:none;
}
.postTitle {
    padding: 22px 15px 10px 28px;.post pre {
    line-height:16px;
}

  我是觉得很正常啊,最后三行重写pre的行高,应该很顺利吧。但是。。。居然不起作用,疑惑了很久,一直无法解决。

  刚看完电视,无聊,就决定继续折腾,但是,死活还是不对,审查元素中,line-height属性能看到是取了样式post的,我前面是重写过post样式,但是后面再去重写post中的pre的行高为什么就不行????

  然后,猜想既然是用的post样式的,我紧跟着重写下pre的行高,应该问题不大吧。。。于是挪到了post样式后面,刷新。。。咦????好了!!!!

  只是把最后那个重新pre行高的样式挪到样式post后面,它咋就又能起作用了呢?????

  无解。。。。真是好基友啊,分开还不干活了!