web布局最实用的12条css技巧

web布局最实用的12条css技巧

1:Rounded corners without images
效果图——
web标准设计
Rounded corners without images
<div id=”container”>
<b class=”rtop”>
<b class=”r1″></b> <b class=”r2″></b> <b class=”r3″></b> <b class=”r4″></b>
</b>
<!–content goes here –>
<b class=”rbottom”>
<b class=”r4″></b> <b class=”r3″></b> <b class=”r2″></b> <b class=”r1″></b>
</b>
</div>

.rtop, .rbottom
{ display: block}
.rtop *, .rbottom *
{ display:  block;  height:  1px;  overflow:  hidden}
.r1
{ margin:  0 5px}
.r2
{ margin:  0 3px}
.r3
{ margin:  0 2px}
.r4
{ margin:  0 1px;  height:  2px}  
2:Style your order list
效果图——
web标准设计
Style your order list
<ol>
<li>
<p>This is line one</p>
</li>
<li>
<p>Here is line two</p>
</li>
<li>
<p>And last line</p>
</li>
</ol>

ol 
{
font
:  italic 1em Georgia, Times, serif;
color
:  #999999;
}
ol p 
{
font
:  normal .8em Arial, Helvetica, sans-serif;
color
:  #000000;
}  
3:Tableless forms
效果图——
web标准设计
Tableless forms
<form>
<label for=”name”>Name</label>
<input id=”name” name=”name”><br>
<label for=”address”>Address</label>
<input id=”address” name=”address”><br>
<label for=”city”>City</label>
<input id=”city” name=”city”><br>
</form>

label,input 
{
display
:  block;
width
:  150px;
float
:  left;
margin-bottom
:  10px;
}

label 
{
text-align
:  right;
width
:  75px;
padding-right
:  20px;
}

br 
{
clear
:  left;
}  
4:Double blockquote
效果图——
web标准设计
Double blockquote
blockquote:first-letter {
background
:  url(images/open-quote.gif) no-repeat left top;
padding-left
:  18px;
font
:  italic 1.4em Georgia, “Times New Roman”, Times, serif;
}  
5:Gradient text effect
效果图——
web标准设计
Double blockquote
<h1><span></span>CSS Gradient Text</h1>

h1 
{
font
:  bold 330%/100% “Lucida Grande”;
position
:  relative;
color
:  #464646;
}
h1 span 
{
background
:  url(gradient.png) repeat-x;
position
:  absolute;
display
:  block;
width
:  100%;
height
:  31px;
}

<!–[if lt IE 7]>
<style>
h1 span 
{
background
:  none;
filter
:  progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’gradient.png’, sizingMethod=’scale’);
}
</style>
6:Vertical centering with line-height
效果图——
web标准设计
Vertical centering with line-height
div{
height
: 100px;
}
div *
{
margin
: 0;
}
div p
{
line-height
: 100px;
}
<p>Content here</p> 
7:Rounded corners with images
效果图——
web标准设计
Rounded corners with images
<div class=”roundcont”>
<div class=”roundtop”>
<img src=”tl.gif” alt=”"
width=”15″ height=”15″ class=”corner”
style=”display: none” />
</div>

CONTENT

<div class=”roundbottom”>
<img src=”bl.gif” alt=”"
width=”15″ height=”15″ class=”corner”
style=”display: none” />
</div>
</div>

.roundcont 
{
width
:  250px;
background-color
:  #f90;
color
:  #fff;
}

.roundcont p 
{
margin
:  0 10px;
}

.roundtop 
{
background
:  url(tr.gif) no-repeat top right;
}

.roundbottom 
{
background
:  url(br.gif) no-repeat top right;
}

img.corner 
{
width
:  15px;
height
:  15px;
border
:  none;
display
:  block !important;
}
8:Multiple class name
<img src="image.gif" class="class1 class2" alt="" />

.class1 
{  border: 2px solid #666;  }
.class2 
{
padding
: 2px;
background
: #ff0;
}  
9:Center horizontally
效果图——
web标准设计
Center horizontally
<div id=”container”></div>
#container 
{
margin
: 0px auto;
}  
10:CSS Drop Caps
效果图——
web标准设计
CSS Drop Caps
<p class=”introduction”> This paragraph has the class “introduction”. If your browser supports the pseudo-class “first-letter”, the first letter will be a drop-cap. </p>

p.introduction:first-letter 
{
font-size 
:  300%;
font-weight 
:  bold;
float 
:  left;
width 
:  1em;
}  
11:Prevent line breaks in links, oversized content to brake
a{
white-space
: nowrap;
}

#main
{
overflow
: hidden;
}
12:Show firefox scrollbar, remove textarea scrollbar in IE
html{
overflow
: -moz-scrollbars-vertical;
}

textarea
{
overflow
: auto;
}  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我! 毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip毕设新项目-基于Java开发的智慧养老院信息管理系统源码+数据库(含vue前端源码).zip
综合小区管理系统管理系统按照操作主体分为管理员和用户。管理员的功能包括报修管理、车位管理、车位分配管理、出入管理、字典管理、房屋管理、物业费缴纳管理、公告管理、物业人员投诉管理、我的私信管理、物业人员管理、用户管理、管理员管理。用户的功能包括管理部门以及部门岗位信息,管理招聘信息,培训信息,薪资信息等。该系统采用了Mysql数据库,Java语言,Spring Boot框架等技术进行编程实现。 综合小区管理系统管理系统可以提高综合小区管理系统信息管理问题的解决效率,优化综合小区管理系统信息处理流程,保证综合小区管理系统信息数据的安全,它是一个非常可靠,非常安全的应用程序。 管理员权限操作的功能包括管理公告,管理综合小区管理系统信息,包括出入管理,报修管理,报修管理,物业费缴纳等,可以管理操作员。 出入管理界面,管理员在出入管理界面中可以对界面中显示,可以对招聘信息的招聘状态进行查看,可以添加新的招聘信息等。报修管理界面,管理员在报修管理界面中查看奖罚种类信息,奖罚描述信息,新增奖惩信息等。车位管理界面,管理员在车位管理界面中新增。公告管理界面,管理员在公告管理界面查看公告的工作状态,可以对公告的数据进行导出,可以添加新公告的信息,可以编辑公告信息,删除公告信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值