随笔分类 -  css

摘要:样式: <style type="text/css"> img:hover{ transform:scale(2,2)}</style> HMTL代码: <img src="images/eg_tulip.jpg" /> 注:设置2,2,当光标放到img标签时,图片高度放大2倍,宽度放大2倍 阅读全文
posted @ 2020-07-02 18:02 农名工进城 阅读(810) 评论(0) 推荐(0)
摘要:按钮: {position: 'fixed',bottom: 0;} 如果 按钮覆盖了容器的内容,容器加个padding-bottom就行了 容器: {padding-bottom: 100px;} 这样的话,按钮会固定在手机屏幕的底部,如果要居中的话要设置 按钮{ margin:auto; lef 阅读全文
posted @ 2020-06-29 08:36 农名工进城 阅读(1024) 评论(0) 推荐(0)