zoukankan
html css js c++ java
用css来强制按比例压缩图片的高度或宽度
有时候图片太大,会破环网页整齐的布局。这时可以用css来强制按比例压缩图片的高度或宽度
css代码如下:
img,a img{
border:0;
margin:0;
padding:0;
max-590px;
expression(this.width>590?"590px":this.width);
max-height:590px;
height:expression(this.height>590?"590px":this.height);
查看全文
相关阅读:
JAVA数据结构--ArrayList动态数组
LeetCode记录之35——Search Insert Position
LeetCode记录之28——Implement strStr()
LeetCode记录之27——Remove Element
LeetCode记录之26——Remove Duplicates from Sorted Array
LeetCode记录之21——Merge Two Sorted Lists
LeetCode记录之20——Valid Parentheses
LeetCode记录之14——Longest Common Prefix
JMeter学习笔记01-安装环境
Python3学习笔记35-编程练习题
原文地址:https://www.cnblogs.com/sheseido/p/1862368.html
最新文章
ubuntu 14.04 下通过apt-get 安装jdk
配置 apt-get cloudera 离线source(Cloudera Manager的源)
对 Linux 新手非常有用的20个命令
ubuntu 安装cloudera hadoop
locate 命令
Homebrew简介及安装
ubuntu14.04字符界面中文乱码及中文输入
分布式服务框架HSF学习
UI3_UITableViewDelete(多选)
UI2_UITableViewDelete
热门文章
UI1_UITableViewHomeWork
UI4_UITableViewEdit
UI3_UITableView
UI2_ScrollViewHomeWork
UI1_ScrollViewHomeWork
页面传值总结Block
UI2_ScrollView&UIPageControl
UI1_UIScrollView
JAVA数据结构--LinkedList双向链表
自动装箱和拆箱
Copyright © 2011-2022 走看看