随笔分类 -  css

摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, 阅读全文
posted @ 2017-07-31 11:57 i'mpossible 阅读(168) 评论(0) 推荐(0)
摘要:<!doctype html><html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, 阅读全文
posted @ 2017-07-25 14:01 i'mpossible 阅读(277) 评论(0) 推荐(0)
摘要:做网页免不了遇到弹窗,遮罩层这些页面,当有遮罩层的时候需要禁止底层页面滑动,本来使用event.stopPropagation();阻止事件冒泡在安卓端就是可以实现的,但是在ios上这个并不起作用。 所以为了方便在弹出遮罩层的同时给body设置'position':'fixed';'top':'负的 阅读全文
posted @ 2017-07-07 11:37 i'mpossible 阅读(1309) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .div1{ width: 300px; overflow: hidden;//超出隐藏 text-overflow 阅读全文
posted @ 2017-04-02 17:03 i'mpossible 阅读(5210) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{ margin: 0; padding: 0; } .div1{ height: 100px; width: 6 阅读全文
posted @ 2017-04-02 16:51 i'mpossible 阅读(8582) 评论(0) 推荐(0)