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

推荐订阅源

L
LINUX DO - 热门话题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
WordPress大学
WordPress大学
Project Zero
Project Zero
P
Palo Alto Networks Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
T
Tailwind CSS Blog
Forbes - Security
Forbes - Security
F
Full Disclosure
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hacker News: Ask HN
Hacker News: Ask HN
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Fortinet All Blogs
Cisco Talos Blog
Cisco Talos Blog
G
Google Developers Blog
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
O
OpenAI News
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
IT之家
IT之家
U
Unit 42
腾讯CDC
S
Security Affairs
C
Cisco Blogs
Schneier on Security
Schneier on Security
The Last Watchdog
The Last Watchdog
B
Blog RSS Feed
宝玉的分享
宝玉的分享
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Blog of Author Tim Ferriss

博客园 - X龙

远程唤醒wol(Wake On Lan) 我的附件列表 github项目管理 js提交验证 web模拟慢网速环境 按钮提交事件处理(以下方法兼容ie,firefox,chrome) js 格式化日期 Win7下如何在任务栏显示操作中心的图标 清除右键图形属性 图形选项 .net软件工程师面试知识点 设置JqueryUI DatePicker默认语言为中文 asp.net mvc2升级到asp.net mvc3 pivot与unpivot用法 解决32位ie不能上网,64位ie能上网 seo robots.txt编写 xml xmlnamespace sql server 2005生成insert语句,同时完成多表(Bug:插入语句列列表最后一列列名后还带有,) input type=file显示及清空值 预防SQL注入攻击
div+css搭建系统页面框架
X龙 · 2012-07-06 · via 博客园 - X龙

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>

        <style type="text/css">
            *
            {
                margin:0;
                padding:0;
            }

            #mainTop
            {
                height:90px;
                overflow:hidden;
            }

            #bottomLeft
            {
                height:100%;
                width:15%;
                float:left;
                overflow:hidden;
                position:relative;
            }

            #bottomRight
            {
                height:100%;
                width:85%;
                float:left;
                overflow:hidden;
            }

            #split
            {
                width:10px;
                height:100%;
                background:black;
                position:absolute;
                right:0;
                top:0;
            }

            #leftContent
            {
                height:100%;        
                overflow:auto;
                margin-right:10px;  /* 宽度和split的宽度一致 */
            }

            #rightContent
            {
                height:100%:
                overflow:auto;
            }
        </style>
    </head>
    <body>
        <div>
            <div id="mainTop">c</div>
            <div id="mainBottom">
                <div id="bottomLeft">
                    <div id="split"></div>
                    <div id="leftContent">
                        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabe
                    </div>
                </div>
                <!-- 为什么在bottomRight还套一个rightContent:当对bottomRight设置margin或padding会将它占的位置加上
                margin或padding的宽度,导致溢出。在里面再套一个rightContent,让rightContent的宽度自动,当设置rightContent的margin或padding时,它占的整体位置不变,会将内容的宽度自动变小,
                margin或padding的宽度+width=rightContent的宽度
                -->
                <div id="bottomRight">
                    <div id="rightContent">b</div>
                </div>
                <div style="clear:both;"></div>
            </div>
        </div>
    </body>

    <script type="text/javascript">            
        var docHeight = document.documentElement.clientHeight;
        var mainBottom = document.getElementById("mainBottom");

        // 90:是mainTop的高度
        mainBottom.style.height = (docHeight - 90).toString() + "px";

        document.getElementById("bottomLeft").onscroll = function()    {
            document.getElementById("split").style.position = "absolute";
            document.getElementById("split").style.right = "2px";
        };
    </script>
</html>