Web之三个插件

一、BootStrap

1、响应式
 当最小宽度是768px时(>=768px),下面生效,小于768px时,就不生效了
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
2、图标、字体
@font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
.glyphicon-asterisk:before {
  content: "\002a";
}
3、基本使用
引用别人的插件,想让自己定义的样式生效,后面加上 !important
.no-radus{
    border-radius: 0 !important;
}
小例子、轮播插件
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" type="text/css" href="bxslider-4-4.2.12/dist/jquery.bxslider.css">
</head>
<body>
    <ul class="bxslider">
        <li><img src="pictuers/1.jpg"/></li>
        <li><img src="pictuers/2.jpg"/></li>
        <li><img src="pictuers/3.jpg"/></li>
        <li><img src="pictuers/4.jpg"/></li>
    </ul>

    <script src="jquery-1.12.4.js"></script>
    <script src="bxslider-4-4.2.12/dist/jquery.bxslider.js"></script>
    <script>
        $(function () {
            $('.bxslider').bxSlider();
        });
    </script>

</body>
</html>

二、EasyUI

三、JqueryUI

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值