当前位置:网站首页>2014 Alibaba web pre intern project analysis (1)
2014 Alibaba web pre intern project analysis (1)
2022-07-06 22:33:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
Following simplification CSS Code :
div.container{
width:500px;
background-image:url(/img/sprite.png);
background-repeat:no-repeat;
background-position:0px -78px;
}
div.container ul#news-list,div.container ul#news-list li{
margin:0px;padding:0px;
}
div.container ul#news-list li{
padding-left:20px;
background-image:url(/img/sprite.png);
background-position:-120px opx;
}
A{
font-size:14px;
font-weight:bold;
line-height:150%;
color:#000000;
}answer :
div.container{ width:500px; background-image:url(/img/sprite.png); background-repeat:no-repeat; background-position:0px -78px;}div.container ul#news-list,div.container ul#news-list li{ margin:0px;padding:0px;}div.container ul#news-list li{ padding-left:20px; background-image:url(/img/sprite.png); background-position:-120px opx;}A{ font-size:14px; font-weight:bold; line-height:150%; color:#000000;}div.container{ width:500px; background:url(/img/sprite.png) no-repeat 0 -78px;}#news-list,#news-list li{ margin:0 padding:0;}#news-list li{ padding-left:20px;background:url(/img/sprite.png)no-repeat -120px 0;}analysis :CSS Brief introduction to usage
(1)CSS in font Abbreviation :
font:italicsmall-capsbold12px/1.5emarial,verdana; Equivalent to :
font-style:italic;font-variant:small-caps;font-weight:bold;font-size:12px;line-height:1.5em;font-family:arial,verdana;The order :font-style|font-variant|font-weight|font-size|line-height|font-family
(2)CSS in background Abbreviation :
background:#fffurl(bg.gif)no-repeatfixedlefttop; Equivalent to :
background-color:#fff;background-image:url(bg.gif);background-repeat:no-repeat;background-attachment:fixed;background-position:lefttop;The order :background-color|background-image|background-repeat|background-attachment|background-position
(3)CSS in margin&padding Abbreviation :
border:1pxsolid#000; Equivalent to :
border-width:1px;
border-style:solid;
border-color:#000;The order :border-width|border-style|border-color
(4)CSS in list-style Abbreviation :
list-style:squareoutsideurl(bullet.gif); Equivalent to :
list-style-type:square;
list-style-position:outside;
list-style-image:url(bullet.gif)The order :list-style-type|list-style-position|list-style-image
(5) The abbreviations of four sides are generally as follows :
padding:1px2px3px4px; Equivalent to :
padding-top:1px;
padding-right:2px;
padding-bottom:3px;
padding-left:4px;The order :top|right|bottom|left Regardless of the border width . Or border color 、 Margin, etc , Just CSS The style involves four sides . The sequence is all “ On the lower left ”( clockwise ).
5.1) Suppose the values of four sides omit one . Just write three :
padding:1px2px3px; Is equivalent to omitted “ The left value ” be equal to “ Right value ”:
padding-top:1px;
padding-right:2px;
padding-bottom:3px;
padding-left:2px;5.2) Suppose the values of four sides omit two :
padding:1px2px; Equivalent to : The left value omitted is equal to the right value . The upper value equals the lower value
padding-top:1px;
padding-right:2px;
padding-bottom:1px;
padding-left:2px;5.3) There is only one value
Padding:1px: Equivalent to :
padding-top:1px;
padding-right:1px;
padding-bottom:1px;
padding-left:1px;Copyright notice : This article is the original article of the blogger , Blog , Do not reprint without permission .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116989.html Link to the original text :https://javaforall.cn
边栏推荐
- CocosCreator+TypeScripts自己写一个对象池
- OpenCV VideoCapture. Get() parameter details
- 【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
- 【雅思口语】安娜口语学习记录part1
- Aardio - 利用customPlus库+plus构造一个多按钮组件
- Puppeteer连接已有Chrome浏览器
- Is there any requirement for the value after the case keyword?
- MySQL教程的天花板,收藏好,慢慢看
- How big is the empty structure?
- Aardio - 封装库时批量处理属性与回调函数的方法
猜你喜欢
![[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation](/img/2b/15b3d831bba6aa772ad83f3ac91d23.png)
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation

0 basic learning C language - interrupt

Memorabilia of domestic database in June 2022 - ink Sky Wheel

剑指offer刷题记录1

RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv

Crawler obtains real estate data

Aardio - 通过变量名将变量值整合到一串文本中

网络基础入门理解

基于 QEMUv8 搭建 OP-TEE 开发环境

Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa
随机推荐
The SQL response is slow. What are your troubleshooting ideas?
做接口测试都测什么?有哪些通用测试点?
Comparison between variable and "zero value"
npm无法安装sharp
Assembly and interface technology experiment 5-8259 interrupt experiment
GD32F4XX串口接收中断和闲时中断配置
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
hdu 5077 NAND(暴力打表)
pytorch_ Yolox pruning [with code]
小程序系统更新提示,并强制小程序重启并使用新版本
RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
Chapter 4: talk about class loader again
每日一题:力扣:225:用队列实现栈
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation
Adavit -- dynamic network with adaptive selection of computing structure
UDP programming
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Aardio - 封装库时批量处理属性与回调函数的方法
Build op-tee development environment based on qemuv8
How big is the empty structure?