2012年5月23日
摘要: 需求:我有好几次有这样一个需求,ie6,7等情况下。线上页面样式有问题。这时候需要更改某个样式。相当无奈。没有firebug,蛋疼的ie下的webdeveloper等工具就是个垃圾。我就只是想改个样式,就是没办法。这时候,我可以通过在页面上通过javascript:方式写入脚本,来调试样式。当然这样的调试只适合简单的需求。代码如下:function loadScriptUrl(url){ var script = document.createElement('script'); script.type = 'text/javascript'; script.s 阅读全文
posted @ 2012-05-23 19:18 日—月 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 没有仔细的去看原因。稍微搜索了一下,找到了解决方法。哎,知道就行了,样式bug这个东西,深入研究也研究不出啥来。记住就行了<style type="text/css">body{margin:0,padding:0;}ul{height:56px;background:#f1f;}li{overflow:hidden;list-style:none;height:28px;width:100px;background:#22f;}div{height:28px;float:left;}</style> <ul> <li class= 阅读全文
posted @ 2012-05-23 17:59 日—月 阅读(205) 评论(0) 推荐(0) 编辑