css 借助autoflow 属性 实现 选座位效果

1.autoflow属性,如果元素内容的长宽超出元素本身的长宽则会出现滚动条

<HTML> 
<HEAD> 
<TITLE>测试表格内的滚动条</TITLE> 
</HEAD> 
<BODY> 
<div id="wins" 
        style="position:absolute;height:200;width:200;overflow:auto;background:#EEEEEE;"> 
        <p>pppppppppppppppppppppppppppppppppppppppppppppppppp </p> 
        <p>pppppppppppppppppppppppppppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
        <p>ppppppppppppppppppppppppp </p> 
      </div>
</BODY> 
</HTML>

效果如下

2.选座位页面

<html>
<head>
 <meta charset="utf-8"> 
 <title>座位</title>
 <meta name="viewport"
 content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
 <link rel="stylesheet" href=http://www.cppcns.com/web/css/"http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
 
 
 
      
   

扫一扫手机访问