CSS
Radish999
笔者懒,很懒,非常懒!
展开
-
添加类名 class
window.onload =function(){ //alert(); var demo = document.getElementById("demo"); //添加一个类 demo.setAttribute("class","test"); //添加一个类 demo.classList.add...转载 2018-02-11 10:46:50 · 608 阅读 · 0 评论 -
css 文字样式两端对齐
<style> div.justify { text-align: justify; width:200px; font-size:15px; color:red; border:1px solid blue; height:18px; } div.justify > span { display: inline-block /* ...翻译 2018-05-09 14:42:58 · 2145 阅读 · 0 评论 -
css3中calc在less编译时被计算的解决办法
div { @diff : 30px; width : calc(~"100% - @{diff}"); }原创 2019-03-12 14:41:21 · 351 阅读 · 0 评论