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

推荐订阅源

Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
Project Zero
Project Zero
E
Exploit-DB.com RSS Feed
S
Secure Thoughts
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
WordPress大学
WordPress大学
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 热门话题
小众软件
小众软件
P
Privacy & Cybersecurity Law Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Hacker News: Ask HN
Hacker News: Ask HN
AWS News Blog
AWS News Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hacker News: Front Page
F
Full Disclosure
Latest news
Latest news
Schneier on Security
Schneier on Security
The Hacker News
The Hacker News
T
Troy Hunt's Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Jina AI
Jina AI
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
G
GRAHAM CLULEY
Forbes - Security
Forbes - Security
V
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
P
Privacy International News Feed
C
Check Point Blog
N
News and Events Feed by Topic

博客园 - point.deng

Pinax安装笔记 CuteEditor使用心得 asp.net 中的default button 悬浮的购物车 - point.deng - 博客园 欢迎使用我的控件 有用的SQL语句,更新中~ asp.net 实现多语言界面 关于WebService中SOAP扩展求助~~ - point.deng - 博客园 同一账号多次登录 WEB自定义控件小记 C# 使用HOOK 小记 视频转为flv和图片 Asp.net上传图片产生预览效果(转) asp.net2.0用户和角色管理 javascript 练习 Ajax示例 asp.net开发小技巧 Master Page主题以及皮肤的使用 ASP.NET 2.0网站快速导航
DIV+CSS实现圆角
point.deng · 2008-04-25 · via 博客园 - point.deng

今天别人问我,我学习了一下,嘿嘿,
原理就是在一个层上加二到三个层,不过这些层只有左右边线,最上和最下有背景色,然后它们都有长度差距,就这样了,以下是我做的例子:

<html
<head>
    <title>无标题页</title>
    <style>
.up1
{
    overflow:hidden;
    height:1px;
    margin-left:4px;
    margin-right:4px;
    background-color: Aqua;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.up2
{
    overflow:hidden;
    height:1px;
    margin-left:3px;
    margin-right:3px;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.up3
{
    overflow:hidden;
    height:1px;
    margin-left:2px;
    margin-right:2px;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.content
{
    margin-left:1px;
    margin-right:1px;
    height:100px;/*这里控件高度*/
    /*background-color: Aqua;*/
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.down1
{
    overflow:hidden;
    height:1px;
    margin-left:2px;
    margin-right:2px;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.down2
{
    overflow:hidden;
    height:1px;
    margin-left:3px;
    margin-right:3px;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.down3
{
    overflow:hidden;
    height:1px;
    margin-left:4px;
    margin-right:4px;
    background-color: Aqua;
    border-left:solid 1px Aqua;
    border-right:solid 1px Aqua;
}
.cell
{
    width: 50px;/*这里控制宽度*/
}


</style>
</head>
<body>
    <div class="cell">
        <div class="up1">
        </div>
        <div class="up2">
        </div>
        <div class="up3">
        </div>
        <div class="content">
            这里放内容
        </div>
        <div class="down1">
        </div>
        <div class="down2">
        </div>
        <div class="down3">
        </div>
    </div>
</body>
</html>