######6_24 轮播图问题
问题描述:
在官网上取下的图片过大,无法在屏幕中显示一部分图片,无法使两个块级元素并列放置,图片无法居中
解决方法:
overflow: hidden;
display: inline-block;
position: relative;
left: 50%;
-webkit-transform: translate(-50%, 0);
-moz-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
######6_24 标题对齐问题
问题描述:
由于图片有边距,所以无法用标尺度量间距,同时logo和menu总是对不齐
解决办法:
position: relative;
display: inline-block;
vertical-align: top;
margin: 0;
-
Notifications
You must be signed in to change notification settings - Fork 0
LisaPeng/CDC_Tencent_Web_Practice
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published