您的位置:首页 > Web前端 > CSS

响应式布局--引入外部样式

2015-09-13 17:54 627 查看
//当屏幕宽度小于480px的时候,引入demo.css

<link type="text/css" rel="stylesheet" href="style/demo.css" media="only screen and (max-width:480px)"/>

//当屏幕大于685px的时候,启用的css样式,(内联写法)

@media screen and (min-width : 685px){
  .header-top,.search-left,.search-right,.header-nav,.header-nav ul{
    padding: 0 !important;
  }
  .search-right input{
    width: 200px !important;
  }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: