常用的

圆角的一个小变通(画圆):

#border-circle-radius{width:200px;height:200px;border-radius:100px;}

全圆角:

#border-radius{border-radius:10px;}

投影:

{box-shadow: 0 1px 3px rgba(34, 25, 25, 0.2)}

图片等比例缩放

.mid_right_04 img{max-width:218px; max-height:248px; _width: expression(this.width > 218 ? 218 : true); _height: expression(this.height > 248 ? 248 : true);}

头部尾部嵌入

<!-- 头部通用 start -->
  <div style="width:100%; height:59px; margin:0 auto; overflow:hidden;">
    <iframe src="head_boy.html" height="59px" width="100%" frameborder="0"></iframe>
  </div>
 <!-- 头部通用 end -->

表单对齐

<p>
     <span>分类:</span>
     <label>
       <select name="select2"  class="select2">
         <option>全部</option>
       </select>
     </label>
    </p>

css中
. span{ line-height:20px; display:inline-block; width:45px; text-align:right; color: #000; font-weight:bold;}
text-align 属性规定元素中的文本的水平对齐方式
.select2{ width:63px; height:20px;  border:#adadad solid 1px; padding-left:5px; vertical-align:middle;}垂直对齐

透明度问题
.denglu_right img{ margin-bottom:15px; }
.denglu_right img:hover{filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; _filter:alpha(opacity=60); _-moz-opacity:0.6; opacity:0.6;}

转载于:https://www.cnblogs.com/tantry/archive/2012/10/23/2735551.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值