首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏性能与架构

    大型图片网站 500px 是如何处理图片的?

    500px 是一个国际大型图片类网站,致力于摄影分享、发现、售卖的专业平台 需要处理海量用户上传的图片,并且有N倍于上传量的图片展示量 根据一年前公布的数据,500px 每天会产生20TB的数据传输量 500px 的基础架构 开发语言主要是 Ruby on Rails 前端请求处理使用 Nginx 服务集群使用 HAProxy 处理负载均衡 数据存储使用 MySQL, MongoDB, Redis, EC2 图片存储使用 Amazon 的云存储 S3 大规模的使用了微服务,例如: 搜索相关的服务,基于 Elasticsearch 内容相关服务 动态信息服务 图片处理服务 为前端提供接口的API服务 500px 的图片处理 图片处理是重点服务,500px 使用了3个微服务 这3个微服务都是使用Go开发的,500px的这个选择是因为:Go可以很好的处理并发、代码少、运行快,适合图片服务的场景 第一个服务是处理图片上传的 主要特点: (1)提供了一系列滤镜、色彩处理、几何变换等强大功能 (2)支持相当多的格式,如 JPEG、TIFF、PNG、GIF、WebP、FITS、OpenEXR …… (3)处理速度非常快、内存占用少 500px

    1.8K70发布于 2018-04-03
  • 来自专栏喇叭的学堂

    使用radial-gradient完成弧形凹陷的绘制

    200px; overflow: hidden; } .header .circle { --circleValue: 500px -- 弧形 -->

    3、原理 3.1 radial-gradient(500px at top, transparent 500px, red 500px); 意思:1、1000rpx at bottom 就是说,从top开始渐变,渐变圆的半径是500px            2、transparent 500px , red 500px 就是说,从top开始需要渐变时,开始的颜色是transparent ,500px以内都是transparent,然后【red 500px - transparent 500px】 就是渐变中的颜色,但是他们的值都是500px,减去为0,无渐变效果,就会出现一条弧形 3.2 设置--circleValue的原因:控制弧形弯曲 1、要想弧形趋于直线,那么圆的半径要大,上面代码中渐变后的弧形在底部

    39910编辑于 2024-03-11
  • 来自专栏网页前端

    css中的动画效果

    , 0); } 50% { transform: translate(500px, 500px); } 75% { transform: translate(0, 500px); } 100% { , 0); } 50% { transform: translate(500px, 500px); } 75% { transform: translate(0, 500px); } 100% { , 0); } 50% { transform: translate(500px, 500px);

    3.2K30发布于 2021-04-13
  • 来自专栏站长的编程笔记

    【说站】css max函数调整字体

    2、屏幕宽的时候,50%>500px500px。屏幕小的时候,随着屏幕宽度的变化。 返回值 max()函数返回的是值 实例 .element {     width: max(50%, 500px); } 浏览器需要在(50%,500px)中获得值,因为有百分比,最终结果取决于视野宽度 如果50%的计算值小于500px,则取500px。 否则,如果50%的计算值大于500px,50%将被用作宽度值。假设视野宽度为1150px,最终元素宽度为1150pxx50%=575px。

    44920编辑于 2022-11-24
  • 来自专栏小轻论坛

    时空穿梭特效html

    g-group { position: absolute; width: 1000px; height: 1000px; left: -500px ; top: -500px; transform-style: preserve-3d; animation: move 12s infinite linear .item-left { /* background: green; */ transform: rotateY(-90deg) translateZ(500px translateZ(1000px); } @keyframes move { 0% { transform: translateZ(-500px ) rotate(0deg); } 100% { transform: translateZ(500px) rotate(0deg);

    71110编辑于 2024-09-30
  • 来自专栏李洋博客

    IE6不支持min和max-heigt的解决办法

    important;height:500px;min-height:500px; 解释: 1、由于IE6对! important的解释存在bug,所以它只识别height:500px这一句,超过500px后,IE6自身会增加盒子的高度; 2、IE7和其他标准浏览器三句都能识别,虽然定义height:500px, important,所以超过500px也能自动增加盒子的高度。 6.0")){$(".entry").each(Function() {if($(this)[0].scrollHeight>500)$(this) CSS解决方法: .css({"height":"500px

    69420发布于 2021-06-15
  • 来自专栏前端杂货铺

    3d效果的图片轮播

    .win .fly p:nth-child(3){transform: rotateX(3450deg) rotateY(10deg) translateZ(500px);} .win .fly p:nth-child(4){transform: rotateX(-30deg) rotateY(-10deg) translateZ(500px);} .win .fly (3450deg) rotateY(60deg) translateZ(500px);} .win .fly p:nth-child(9){transform: rotateX(230deg (20deg) translateZ(500px);} .win .fly p:nth-child(11){transform:rotateX(30deg) rotateY(10deg) (500px);} .tools .current{background: url(.

    2.8K50发布于 2018-03-15
  • 来自专栏泰斗贤若如

    前端网页设计(不忘初心,继续前行,共筑中国梦精美成品)

    新闻标题链接.新闻标题链接.新闻标题链接.新闻标题链接.........2019/4/8
    28 <div style="height: 5px;width: <em>500px</em> 新闻标题链接.新闻标题链接.新闻标题链接.新闻标题链接.........2019/4/8</a><br> 30 <div style="height: 5px;width: 500px 新闻标题链接.新闻标题链接.新闻标题链接.新闻标题链接.........2019/4/8
    32 <div style="height: 5px;width: <em>500px</em> 新闻标题链接.新闻标题链接.新闻标题链接.新闻标题链接.........2019/4/8</a><br> 34 <div style="height: 5px;width: 500px 新闻标题链接.新闻标题链接.新闻标题链接.新闻标题链接.........2019/4/8
    36 <div style="height: 5px;width: <em>500px</em>

    89630发布于 2019-06-19
  • 来自专栏Web前端开发

    LESS变量

    @{mySelector}{ @{mySelector}:960px; height:500px; } 编译后的 css 文件: .width { width: 960px; height: 500px; } 注意:这里的选择器即是选择器也是属性名,譬如将 class、@mySelector:width; 换成 widths 就会报错,不识别,因为 css 里面没有 widths 示例 less 文件 .box{ background:@green; width:500px; height:500px; } @green:#801f77; 编译后的 css 文件 .box { background: #801f77; width: 500px; height: 500px; }

    1.7K10发布于 2019-08-23
  • 来自专栏全栈程序员必看

    css让div居中显示_css页面居中

    css结构: <style type="text/css"> *{ margin: 0; height: 0; } .warp{ width: 500px; height: 500px; background-color 注意:子绝父相就是 父级元素相对定位,子级元素绝对定位 .warp{ width: 500px; height: 500px; background-color: pink; margin: 50px .warp{ width: 500px; height: 500px; background-color: pink; margin: 50px auto; position:relative;// .warp{ width: 500px; height: 500px; background-color: pink; margin: 50px auto; position:relative;// .warp{ width: 500px; height: 500px; background-color: pink; margin: 50px auto; display: flex; justify-content

    12.5K50编辑于 2022-11-17
  • 来自专栏用户7873631的专栏

    css中背景属性核心

    1.0"> <title>Document</title> <style type="text/css"> div { width: 500px ; height: 500px; } .box1 { background-color: red; } : 500px; } .box1 { background-image: url(./1.jpg); } </style> </head> <body>

    div{ width: 500px; height: 500px

    69310发布于 2020-10-28
  • 来自专栏无道编程

    (2019)[前端]面试题[6]:水平垂直居中方法

    parent">

    .parent { background-color: #eee; width: 500px ; height: 500px; margin: 10px auto; position: relative; } .child { width: 200px; background-color: #eee; display: flex; justify-content: center; align-items: center; width: 500px ; height: 500px; margin: 10px auto; } .child { width: 200px; height: 200px; background-color ; height: 500px; margin: 10px auto; } .child { display: inline-block; width: 200px;

    78700发布于 2019-11-13
  • 来自专栏网络日志

    过渡和2d效果

    ; transition: all 5s linear; } ul li:nth-child(2):hover{ width: 500px; transition: all 5s ease; } ul li:nth-child(3):hover{ width: 500px; transition: all 5s ease-in; } ul li:nth-child (4):hover{ width: 500px; transition: all 5s ease-out; } ul li:nth-child(5):hover{ width: 500px; transition: all 5s ease-in-out; } ul li:nth-child(6):hover{ /* 贝塞尔曲线,是利用一些比较复杂的数学公式 */ (7):hover{ width: 500px; transition: all 5s steps(7); } html部分:

    • linear 匀速
    33210编辑于 2024-06-13
  • 来自专栏全栈程序员必看

    html背景图片的设置宽高_网页的背景图片怎么设置

    /imges/boluo.PNG); background-size:500px 400px; background-repeat: repeat; } /imges/boluo.PNG); background-size:500px 400px; background-repeat: repeat-x; } /imges/boluo.PNG); background-size:500px 400px; background-repeat: repeat-y; } /imges/boluo.PNG); background-size:500px 400px; background-repeat: space; } ( 当容器空间小于图片时: div{ width: 400px; height: 500px; border: palevioletred 3px

    6.3K10编辑于 2022-11-10
  • 来自专栏岳泽以博客

    前端开发中各类型居中方式总结

    或 display: inline;即将其转换成行内块级/行内元素,给父元素设置 text-align: center; <style> .father { width: 500px son">块级元素

    未设置宽度: 利用属性 transform: translateX(-50%); <style> .father { width: 500px 布局,只需要给待处理的块状元素的父元素添加属性 display: flex; justify-content: center; <style> .father { width: 500px <style> .father { width: 500px; height: 300px; background-color: skyblue; <style> .father { width: 500px; height: 300px; background-color: skyblue;

  • 84610编辑于 2022-10-26
  • 来自专栏韩曙亮的移动开发专栏

    【移动端网页布局】flex 弹性布局 ⑤ ( 设置侧轴单行子元素排列方式 | align-items 样式说明 | 代码示例 )

    将展示样式设置为 flex 即可启用弹性布局 */ display: flex; /* 布局宽度 500 像素 */ width: 500px ; /* 布局高度 500 像素 */ height: 500px; /* 设置背景颜色 */ background-color ; /* 布局高度 500 像素 */ height: 500px; /* 设置背景颜色 */ background-color ; /* 布局高度 500 像素 */ height: 500px; /* 设置背景颜色 */ background-color * 设置侧轴从下到上排列 */ align-items: flex-end; /* 布局宽度 500 像素 */ width: 500px

    81710编辑于 2023-05-09
  • 来自专栏WflynnWeb

    CSS实现水平垂直居中的1024种方式、兼容性分析(史上最全)

    --行级元素:为该行级元素的父元素设置text-align:center配合line-height样式--> <div style="width: <em>500px</em>;height: 100px;line-height --块级元素:为其自身设置margin:auto样式--> <div style="width: 500px;height: 100px;border: 1px solid red;"> <div display:table-cell;此元素会作为一个表格单元格显示(类似 和 )--> <div style="display: table;width: <em>500px</em>;height --方法七:Flex加margin:auto--> <div style="display: flex;width: 500px;height: 200px;border: 1px solid --方法八:absolute + calc 缺点:依赖calc的兼容性--> <div style="position: relative;width: <em>500px</em>;height: 200px;

    70420编辑于 2022-10-28
  • CSS 鼠标悬停图片,显示隐藏文本

    div> CSS 样式如下 #Main { width: 600px; margin: 50px auto; height: 400px; } .con { width: 500px position: relative; box-shadow: 3px 3px 10px #666; overflow:hidden; } .con img { width: 500px span { width: 248px; height: 390px; background: #333; position: absolute; left: -500px 30px; color: #fff; font-size:18px; text-align: center; position: relative; left: -500px { line-height: 25px; font-size:14px; color: #fff; position: relative; left: -500px

    9.8K40编辑于 2024-03-16
  • 来自专栏前端开发基础

    HTML基础第六课(冲浪笔记6)

    style> *{ margin: 0; padding: 0; } .box{ width: 500px ; height: 500px; border: 10px solid blue; margin: auto; } style> *{ margin: 0; padding: 0; } .box{ width: 500px ; height: 500px; border: 10px solid blue; margin: auto; } style> *{ margin: 0; padding: 0; } .box{ width: 500px

    44330编辑于 2023-04-01
  • 来自专栏抠抠空间

    CSS实例

    * { margin: 0; } .box { width: 100%; height: 500px center center; background-attachment: fixed; } .d1 { height: 500px ; background-color: tomato; } .d2 { height: 500px; background-color: steelblue; } .d3 { height: 500px; background-color

    70470发布于 2018-04-12
  • 第 2 页第 3 页第 4 页第 5 页第 6 页第 7 页第 8 页第 9 页第 10 页第 11 页
    点击加载更多
    领券