css样式学习记录

去除纵向分隔线 <table rules=cols> 
去除横向分隔线 <table rules=rows> 
去除纵向分隔线和横向分隔线 <table rules=none>
只显示上边框 <table frame=above> 
只显示下边框 <table frame=below> 
只显示左、右边框 <table frame=vsides> 
只显示上、下边框 <table frame=hsides> 
只显示左边框 <table frame=lhs> 
只显示右边框 <table frame=rhs> 
不显示任何边框 <table frame=void>
背景图片 竖的平铺横着摆 横的平铺竖着摆

块认宽高 内联不认宽高
利用css3居中元素:
left:50%;
transform:translateX(-50%);
移动常见设备字体大小
400 / 375 * 16
17.066666666666666
414 / 375 * 16
17.664
360 / 375 * 16
15.36
320 / 375 * 16
13.653333333333334
var str = '<img title="C:\Users\Administrator\Pictures\2014113171913.jpg" alt="C:\Users\Administrator\Pictures\2014113171913.jpg" src="/upload/image/14067766625992018.Jpg"/><img title="C:\Users\Administrator\Pictures\2014113171913.jpg" alt="C:\Users\Administrator\Pictures\2014113171913.jpg" src="/upload/image/14067766625992018.Jpg"/><img title="C:\Users\Administrator\Pictures\2014113171913.jpg" alt="C:\Users\Administrator\Pictures\2014113171913.jpg" src="/upload/image/14067766625992018.Jpg"/>';
var test = /\/([^\/]*?\.jpg)"\/>/gi;
var result = [];
var img ;
while(img = test.exec(str)){
    result .push(img[1]);
 urls = [];
var content = '过儿,我西毒欧阳锋一生纵横西域,今日能与七公切磋武艺,<img src="http://iw3c.com/themes/white/style/logo.png" />共葬于这雪山之颠,也算不枉此生!死前我要将毕<img src="http://iw3c.com/themes/white/style/rss.png" />生所学尽相传授与你。';
content.replace(/<img.*?src="(.*?)"[^>]*>/ig, function(a,b) {
    urls.push(b);
});
alert(urls.join('n'));
table中的td想设置超出长度显示省略号,需先在table上加样式:
table-layout: fixed;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值