table 边框显示设置和js显示无图片样式
来源:互联网 发布:京东全球购奶粉 知乎 编辑:程序博客网 时间:2024/05/01 04:14
---- table边框设置
style=" border-collapse:collapse;" bordercolor="#F6F6F6" --- js 无图片显示
<script type="text/javascript">
function errorpic(thepic) {
thepic.src = "/Flash/nopic.png"
}
</script>
/**** 图片缩放 ****/
function DrawImage(ImgD, FitWidth, FitHeight) {
var image = new Image();
image.src = ImgD.src;
if (image.width > 0 && image.height > 0) {
if (image.width / image.height >= FitWidth / FitHeight) {
if (image.width > FitWidth) {
ImgD.width = FitWidth;
ImgD.height = (image.height * FitWidth) / image.width;
} else {
ImgD.width = image.width;
ImgD.height = image.height;
}
} else {
if (image.height > FitHeight) {
ImgD.height = FitHeight;
ImgD.width = (image.width * FitHeight) / image.height;
} else {
ImgD.width = image.width;
ImgD.height = image.height;
}
}
}
}
/**** 无图显示默认图片 ***/
function errorpic(thepic) {
thepic.src = "/Flash/nopic.png"
}
<asp:Image runat="server" ID="img" Width="150px" Height="160px" ImageUrl="" onerror="javascript:errorpic(this);" />
0 0
- table 边框显示设置和js显示无图片样式
- Table无数据照样显示边框
- table中的边框显示
- table边框显示总结
- table正确显示全部边框的css样式
- ios之如何让图片显示成圆形的样式/设置控件边框大小以及颜色
- table外围边框样式设置
- CSS如何设置html table表格边框样式 CSS如何设置table表格边框样式 对table设置css样式边框,分为几种情况: 1、只对table设置边框 2、对td设置边框 3、对table和
- Table边框的显示处理
- 关于Table的边框显示
- html table的边框显示
- 表格边框显示--关于html table单元格无数据不显示问题
- html table 边框 只显示右边框
- html table 边框和分割线显示和隐藏问题
- Html Table Td 边框属性设置(任意显示需要的边框效果)
- CSS设置html table表格边框样式
- c#无边框点任务栏图标显示和隐藏
- IE浏览器table中的TD无数据边框不显示问题
- C# 委托delege的处理
- 【引用】ComboBox WinForm开发系列 -
- treeview 递归实现
- asp.net 下载程序文件
- 【引用】DataTable 的 JSON 序列化
- table 边框显示设置和js显示无图片样式
- REDIS 学习(9)读写分离,redis主从配置
- jquery + json 操作
- Delphi中StrToDateTime函数TFormatSettings参数的使用
- Linq to DataTable 操作
- 锁存器不爱触发器
- php返回json数据
- ASP.NET中使用System.Net.Mail发邮件
- android仿ios开关按钮