zoukankan
html css js c++ java
利用背景色的两列自适应
Code
1
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
2
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
3
<
head
>
4
<
title
>
test
</
title
>
5
<
style
type
="text/css"
>
6
.main
{
}
{
7
width
:
400px
;
8
background
:
#333333
;
9
color
:
#ffffff
;
10
}
11
.content
{
}
{
12
float
:
left
;
13
width
:
200px
;
14
background
:
#cccccc
;
15
color
:
#000000
;
16
}
17
.clear
{
}
{
18
clear
:
both
;
19
}
20
</
style
>
21
</
head
>
22
<
body
>
23
<
div
class
="main"
>
24
<
div
class
="content"
>
25
高度自适应的例子,注意元素高度的变化。高度自适应的例子,注意元素高度的变化。
26
</
div
>
27
父元素中的内容
28
<
div
class
= "clear"
></
div
>
29
</
div
>
30
</
body
>
31
</
html
>
适用情况:当浮动元素的高度大于父元素时,才有效。
查看全文
相关阅读:
163邮箱手机版怎么登录?原来邮箱无需账号就能登陆也有技巧!
Failed to register dubbo://192.168.137.1:20880/com.youfan.service.SayHelloService?anyhost=true&appli
Linux下安装zookeeper
ZooKeeper 启动报错ZooKeeper JMX enabled by default Using config: /usr/local/zookeeper/bin/../conf/
Github的工作流程
Git+Github 的工作流程
如何通过github pages自定义CSDN、简书、博客园等平台域名
remote: Repository not found. fatal: repository 'https://github.com/AlbertYang666/AlbertYang666.gith
在maven项目中配置数据库连接池Druid
在Spring+maven项目中配置数据库连接池Druid
原文地址:https://www.cnblogs.com/ada313/p/1564188.html
最新文章
每日总结
每日总结
每日总结
每日总结
每日总结
每日总结
每日总结
每日总结
每日总结
每日总结
热门文章
基于Android的在线播放器系统的设计与实现
女人不仅有长的漂亮,还要是叱咤职场的一把好手!
企业邮箱有什么用处?收费企业邮箱哪家好用?
TOM企业邮箱推出中小企业共赢计划,罕见推出4折+万元礼包福利!
爆款微信h5小游戏到底有什么相同点?
12月已至,年终总结怎么写?hr及职场人们来看看吧~
如何做好H5游戏营销?H5游戏推广之粉丝维护篇
163邮箱的百种使用技巧,原来电子邮箱还能这样用?
科技资讯_嫦娥五号完成月球钻取采样;TOM VIP邮箱新升级
高通推出骁龙888处理器,移动办公使用电子邮箱更便捷!
Copyright © 2011-2022 走看看