boostrap写的

<style>
        .xxtj{
            border: 1px solid #dcdcdc;
            margin: 0 32px;
            padding: 32px 43px;
        }
        .dlhoriv dt{
            color: #666666 !important;
            font-weight: normal;
            width: 130px;
        }
        .dlhoriv dt a{
            color: #10a1d9 !important;
        }
        .dlhoriv dd{
            color: #666666 !important;
            margin-left: 130px;
            margin-bottom: 10px;
        }
        .bag-blue{
            background-color: #10a1d9 !important;
            color: #fff;
            font-size: 16px;
        }
        .padd-lef{
            padding-left: 45px;
        }
        .hibj{
            background-color: #f7f8f9;
            display: block;
            margin: 0 0 10px;
            line-height: 1.42857143;
            color: #333;
            word-break: break-all;
            word-wrap: break-word;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding-right: 60px;
            padding-top: 15px;
        }
        .fonumber{
            color: #999999;
        }
        .bag-blue2{
            background-color: #10a1d9 !important;
            color: #fff;
        }
        .duax{
            display: none;
        }
        .duaxt{
            display: none;
        }
    </style>
<div class="row">
    <div class="container-fluid">
        <div class="xxtj">
            <div  style="text-align: right;">
                <a type="button" class="btn btn-info" style="发送</a>
                <a class="btn btn-default" href="#" role="button">返回</a>
            </div>
            <dl class="dl-horizontal dlhoriv">
                <dt>发送对象:</dt>
                <dd>当前选中 0 人 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#" data-toggle="modal" data-target="#myModal">添加</a></dd>
                <dt>请选择发送方式:</dt>
                <dd class="addinputd">
                    <label class="radio-inline">
                        <input type="radio" name="duanxing" id="inlineRadio1" value="option1"> 短信+邮件
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="duanxing" id="inlineRadio2" value="option2"> 仅短信
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="duanxing" id="inlineRadio3" value="option3"> 仅邮件
                    </label>
                </dd>
            </dl>
            <!--弹出层-->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel">Modal title</h4>
                        </div>
                        <div class="modal-body">
                            ...
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            <button type="button" class="btn btn-primary">Save changes</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 弹出层 end-->
            <!--短信-->
            <div class="duax">
                <div class="bs-example" data-example-id="simple-pre">
                    <pre class="bag-blue padd-lef">短信</pre>
                </div>
                <div class="highlight">
                    <div class="hibj">
                        <dl class="dl-horizontal dlhoriv">
                            <dt style="padding-top: 5px">选择模板:</dt>
                            <dd>
                                <div class="form-inline">
                                    <select class="form-control" style="width: 120px">
                                        <option>请选择模板</option>
                                        <option>请选择模板2</option>
                                        <option>请选择模板3</option>
                                    </select>
                                    <label style="float: right">
                                        <a class="btn btn-default addhfmr">恢复系统默认</a>
                                    </label>
                                </div>

</dd>
                            <dt style="padding-top: 5px"><span style="color: #d90101">*</span>短信内容:</dt>
                            <dd>
                                <textarea class="form-control textarea-item" rows="3"></textarea>
                                <div class="form-inline" style="margin-top: 10px">
                                    <label style="color: #eb2020;font-size: 12px;font-weight: normal;">
                                        <span class="fonumber">(<span class="textareaInput">0</span>/200)</span> 短信:62个字为一条,超过62字将被分多条发送。
                                    </label>
                                    <label style="float: right">
                                        <a class="btn btn-default" href="#">请输入模板名称</a>
                                        <botton class="btn btn-default bag-blue2 textarea-btn" type="submit">保存模板</botton>
                                    </label>
                                </div>
                                <script>
                                    $(document).ready(function(){
                                        var lenInput = $(‘.textarea-item‘).val().length;
                                        $(".textarea-item").keyup(function(){
                                            lenInput = $(this).val().length;
                                            if(lenInput>0 && lenInput<=200){
                                                $(‘.textareaInput‘).html(lenInput);
                                                $(‘.textarea-btn‘).attr(‘disabled‘,false);
                                            }else{
                                                $(‘.textarea-btn‘).attr(‘disabled‘,true);
                                            }
                                        });
                                    });
                                </script>
                                <script>
                                    $(function () {
                                        $(".addhfmr").click(function () {
                                            $(".textarea-item").val(‘恢复系统默认‘);
                                        })
                                    })
                                </script>
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
            <!-- 短信 end-->
            <!--邮件-->
            <div class="duaxt">
                <div class="bs-example" data-example-id="simple-pre">
                    <pre class="bag-blue padd-lef">邮件</pre>
                </div>
                <div class="highlight">
                    <div class="hibj">
                        <dl class="dl-horizontal dlhoriv">
                            <dt style="padding-top: 5px">选择模板:</dt>
                            <dd>
                                <div class="form-inline">
                                    <select class="form-control" style="width: 120px">
                                        <option>请选择模板</option>
                                        <option>请选择模板2</option>
                                        <option>请选择模板3</option>
                                    </select>
                                    <label style="float: right">
                                        <a class="btn btn-default" href="#">恢复系统默认</a>
                                    </label>
                                </div>
                            </dd>
                            <dt style="padding-top: 5px"><span style="color: #d90101">*</span>邮件内容:</dt>
                            <dd>
                                <textarea class="form-control textarea-item" rows="3"></textarea>
                                <div class="form-inline" style="margin-top: 10px">
                                    <label style="float: right">
                                        <a class="btn btn-default" href="#">请输入模板名称</a>
                                        <botton class="btn btn-default bag-blue2" type="submit">保存模板</botton>
                                    </label>
                                </div>
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
            <!-- 邮件-->
            <script>
                $(function () {
                    $(".addinputd input").click(function () {
                        if($(this).val()=="option1") {
                            $(".duax").show();
                            $(".duaxt").show();
                        }
                        else if($(this).val()=="option2"){
                            $(".duax").show();
                            $(".duaxt").hide();
                        }
                        else if($(this).val()=="option3"){
                            $(".duaxt").show();
                            $(".duax").hide();
                        }
                    })
                })
            </script>
        </div>
    </div>

</div>

时间: 2024-10-18 13:04:15

boostrap写的的相关文章

权限管理系统 Spring-authority

是由 spring+springmvc+hibernate+spring-security +easyui +boostrap 写的一个框架集合,目前实现了一个基础的权限管理系统,权限是基于细粒度的过滤,对于初学权限设计的人来说也算是个最简洁的权限实现,基于它来做项目,它只是做了一些绝大部分项目都应该做的一些基础功能. 1参考资料 http://blog.csdn.net/k10509806/article/details/6369131 http://www.cnblogs.com/wenxi

一款非常好用的boostrap的验证插件、再也不用自己手写正则表达式和js了

基于jquery.bootstrap数据验证插件bootstrapValidator教程 bootstrap:能够增加兼容性的强大框架. 因为项目需要数据验证,看bootstrapValidator 还不错,就上手一直,完美兼容,话不多说. 需要引用css: bootstrap.min.css bootstrapValidator.min.css js: jquery-1.10.2.min.js bootstrap.min.js bootstrapValidator.min.js (下载实例)

用H5+Boostrap做简单的音乐播放器

用H5+Boostrap做简单的音乐播放器 前言:这个是综合一下我最近在学的东西做的小Demo,到实际使用还有距离,但是用来练手巩固知识点还是不错的,最近在二刷JS书和Boostrap.css的源码,做完这个Demo也算是暂告一段落,接下来是jQuery的源码和Boostrap.js的源码,任务很艰巨呢,加油~在此就不整篇的贴代码了,如果感兴趣的小伙伴可以发消息给我,可以把代码传给你们~ 正文: 先上效果图 1.布局:Boostrap里的响应式和自适应布局是自然跑不掉的,container中嵌套

H5+Boostrap的音乐播放器

H5+Boostrap做简单的音乐播放器 前言:这个是综合一下我最近在学的东西做的小Demo,到实际使用还有距离,但是用来练手巩固知识点还是不错的,最近在二刷JS书和Boostrap.css的源码,做完这个Demo也算是暂告一段落,接下来是jQuery的源码和Boostrap.js的源码,任务很艰巨呢,加油~在此就不整篇的贴代码了,如果感兴趣的小伙伴可以发消息给我,可以把代码传给你们~ 正文: 先上效果图 1.布局:Boostrap里的响应式和自适应布局是自然跑不掉的,container中嵌套r

vue.js+boostrap最佳实践

一.为什么要写这篇文章 最近忙里偷闲学了一下vue.js,同时也复习了一下boostrap,发现这两种东西如果同时运用到一起,可以发挥很强大的作用,boostrap优雅的样式和丰富的组件使得页面开发变得更美观和更容易,同时vue.js又是可以绑定model和view(这个相当于MVC中的,M和V之间的关系),使得对数据变换的操作变得更加的简易,简化了很多的逻辑代码. 二.学习这篇文章需要具备的知识 1.需要有vue.js的知识 2.需要有一定的HTML.CSS.JavaScript的基础知识 3

Boostrap入门准备之border-box

前言:在Boostrap学习过程中,尤其是网格系统的使用中,遇到了许多的坑,如果在学Boostrap之前,先做好一些准备功夫,就可以很好的避开这些坑了.现在,我们首先来说说border-box这个属性. 在Boostrap自带的css文件:boostrap.css中,有这样一段代码: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 这意味着在写代码时,这个属性将无

vue.js+boostrap

vue.js+boostrap最佳实践 一.为什么要写这篇文章 最近忙里偷闲学了一下vue.js,同时也复习了一下boostrap,发现这两种东西如果同时运用到一起,可以发挥很强大的作用,boostrap优雅的样式和丰富的组件使得页面开发变得更美观和更容易,同时vue.js又是可以绑定model和view(这个相当于MVC中的,M和V之间的关系),使得对数据变换的操作变得更加的简易,简化了很多的逻辑代码. 二.学习这篇文章需要具备的知识 1.需要有vue.js的知识 2.需要有一定的HTML.C

Boostrap轮图片可以左右滑动

记得引用Boostrap的js和css html代码: <div id="Mycarousel" class="carousel slide col-md-12" data-ride="carousel" data-interval="4000" > <!-- 底部的指示小圆点--> <ol class="carousel-indicators"> <li data

SSM使用boostrap框架 ,静态资源无法引用

最近在看了简书的一个大牛写的东西,感慨良多.这个世界最可怕的事情就是比你优秀的人还比你努力! 我做毕业设计遇到的一个SSM框架,页面使用的jsp,在使用boostrap的时候遇到的问题,框架一直无法引用boostrap的 js .css 资源,格式使用不上.项目的框架如下. 在查了N多的资料,试了N种网上说的引用路径,有相对路径 还有用java小脚本获取绝对路径,到最后按着 Ctrl 路径也变了颜色,可是就是访问不到. <% String path = request.getContextPat