您的位置:首页 > 其它

responsive web design

2015-09-21 00:32 447 查看
1. responsive web design 适应不同屏幕的网页

resize调整大小,hide隐藏,shrink收缩,enlarge放大,or move the content移动

2. <head>
<style>
.city {
    float: left;
    margin: 5px;
    padding: 15px;
    width: 300px;
    height: 300px;
    border: 1px solid black;

</style>
</head>
<body>

<h1>Responsive Web Design Demo</h1>

<div class="city">
  <h2>London</h2>
  <p>London is the
capital city of England.</p>
  <p>It is the most
populous city in the United Kingdom,
  with a metropolitan area of over 13 million inhabitants.</p>
</div>

<div class="city">
  <h2>Paris</h2>
  <p>Paris is the
capital of France.</p> 
  <p>The Paris area
is one of the largest population centers in Europe,
  with more than 12 million inhabitants.</p>
</div>

<div class="city">
  <h2>Tokyo</h2>
  <p>Tokyo is the
capital of Japan.</p>
  <p>It is the center
of the Greater Tokyo Area,
  and the most populous metropolitan area in the world.</p>
</div>

</body>

3. 可以用W3.CSS来做

详见W3.CSS
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: