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

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
Lohrmann on Cybersecurity
Cisco Talos Blog
Cisco Talos Blog
O
OpenAI News
S
Securelist
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
H
Heimdal Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
Webroot Blog
Webroot Blog
The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
D
Docker
D
DataBreaches.Net
A
About on SuperTechFans
T
Tor Project blog
V
V2EX
G
Google Developers Blog
博客园 - Franky
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
I
InfoQ
H
Help Net Security
V2EX - 技术
V2EX - 技术
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security Affairs
SecWiki News
SecWiki News
The Register - Security
The Register - Security
人人都是产品经理
人人都是产品经理
NISL@THU
NISL@THU
小众软件
小众软件
B
Blog
T
Threatpost
P
Palo Alto Networks Blog
博客园 - 【当耐特】
L
LangChain Blog
AWS News Blog
AWS News Blog
月光博客
月光博客
宝玉的分享
宝玉的分享

博客园 - 震

关于反射中方法指针中我遇到的问题 一些关于数据库的问题 使用ORACLE和MYSQL的简单心得 出来混总有一天要还的 Java中的访问修饰符 Java中的static、final、this、super xslt学习简单笔记 XML schema学习笔记 DOM中对象的方法(转贴) 学习JavaScript的开源好东东 web标准的悄然袭来 替换字符性能测试 在JAVA中调用外部可执行程序 - 震 - 博客园 一小练习 - 震 - 博客园 Java中的String类和StringBuffer类 将Java对象转为String的几种方法剖析(转贴) java 中的随机数用法 两种特殊的Java容器类List和Set分析[转贴] java.util.list初体验
关于CSS中的一些问题 - 震 - 博客园
· 2006-06-20 · via 博客园 - 震

1.如何使页面居中?
答:margin:0 auto;表示上下边距为0,左右为自动,因此该层就会自动居中了。如果要让页面居左,则取消掉auto值就可以了,因为默认就是居左显示的。
2.如何定义导航栏?
答:如今早已经用列表<li>代替了以前<table>制作导航栏:

<div id="menu">
   
<ul>
   
<li><href="#">首页</a></li>
   
<li><href="#">博客</a></li>
   
<li><href="#">退出</a></li>
   
</ul>
</div>

而CSS中定义为:

#menu {padding:20px 20px 0 0}
#menu ul 
{list-style:none;margin:0px;}
#menu ul li 
{float:left;margin:0 10px}

其中list-style:none表示取消列表前点,float:left的左右是让内容都在同一行显示,因此使用了浮动属性(float),margin:0 10px表示让列表之间距离为20px。
3.如何定义一条虚线?
答:以前如果要绘制一条虚线是件很麻烦的事情,你要做个小象素的图片来填充。而现在只需要用

<div style="border-bottom:1px dashed #EFEFEF"></div>

就能实现同样的功能。这样还减少了图片下载所占用的网络资源,使速度更快。