随笔分类 - CSS
摘要:bottom: 40px; height: calc(100% - 90px); 控制图片居中 font-family: Arial, sans-serif; font-size: 16px; background-color: rgba(51, 51, 51, 0.95); height: 100
阅读全文
摘要:转自: https://blog.csdn.net/qq_40717869/article/details/81749970 1.用fixed定位来解决 解决思路:这个就是把html,body设置width: 100%; height: 100%; position: fixed;top:0;lef
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> #lay-table { background-color: #fff; color: #666; border-collapse: collapse; border-spacing: 0; width: 100%; } #
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> #lay-table { background-color: #fff; color: #666; border-collapse: collapse; border-spacing: 0; } #lay-table td
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <style> ._ul>li
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> .div1 { height: 45px; line-height: 45px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; width:
阅读全文
摘要:两个重要的javascript语句: top.result.document.location='result.html?data=' + data; --------url传参长度有限制。。。。 和 window.top.frames['result'].document.getElementBy
阅读全文
摘要:<div style="margin-top:20px;margin-bottom:10px;"> <div style="display: inline-block;vertical-align: bottom;"> <select style="width:100%;" id="type0"><
阅读全文
摘要:来自 https://www.w3school.com.cn/cssref/pr_transition-timing-function.asp css <!DOCTYPE html> <html> <head> <style> .right_head_ul li { display: inline-
阅读全文
摘要:<!DOCTYPE html> <html> <body> <table bgcolor = "black" cellspacing= "1" > <tr bgcolor= "white"> <td colspan= "4" align= "center">通讯录</td> </tr> <tr bg
阅读全文
摘要:div水平和垂直居中,text-align和vertical-align不起作用,因为标签div没有这两个属性,所以再css中设置这两个值不能居中的效果。 1. div水平居中:设置margin的左右边距为自动。margin:0 auto; 2. div中的文字居中:将div的行高设置跟其高度一样的
阅读全文
摘要:未知子元素宽高 <li style="width: 33.3%;" data_url="Navig/MatterInfos" data_id="18"><div style="background-color: #F874A4;height: 400px;display: flex;"> <div
阅读全文
摘要:.metro-layout .items-box:first-child a{ background: #00a8ec; } .metro-layout .items-box:nth-child(2){ position: absolute; left: 0px; top: 0px; transform: translate3d(0px, 200px, 0px);...
阅读全文