![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html+js+css
工作中遇到问题的解决方法
CDMX7Y
这个作者很懒,什么都没留下…
展开
-
在CHtmlView中指定IE版本
vs2010/vs2017中,CHtmlView默认使用的浏览器内核是IE 7,不支持Html5中的canvas等元素。 为解决这一问题,可以在CHtmlView打开的html中指定IE版本,方法:在Html5的head部分加入:<meta http-equiv="X-UA-Compatible" content="IE=版本号" />。 例子: 1、采用IE 9 <!DOCTYPE html> <head> <meta http-equiv="Co..原创 2021-05-02 08:45:04 · 524 阅读 · 0 评论 -
四舍五入保留2位小数
new Number(1.23456).toFixed(2);原创 2021-04-30 10:27:01 · 101 阅读 · 0 评论