03 深入了解网站开发

UI设计师 :设计稿

web前端开发工程师(H5开发)
设计稿 -> 代码
数据库里的数据 -> 显示到页面
HTML + CSS
HTML : 结构
CSS :样式
web前端的三大核心技术
HTML + CSS +JS

web后端开发工程师

js和html代码演示

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style>div{color: red;font-style: italic;}</style>
<div>Html+css系列教程</div>
<script>
let div = document.querySelector('div');
let timer = null;
let flag = true;
div.onmouseover = function(){
    timer = setInterval(()=>{
            if(flag){
                        div.style.color = 'blue';
                        div.style.fontStyle = 'normal';
                      }
            else{
                 div.style.color = 'red';
                 div.style.fontStyle = 'italic';
   	             }
  flag = !flag;   
   },500);
   };
        div.onmouseout = function(){
            clearInterval(timer);
           }
</script>
发布了10 篇原创文章 · 获赞 2 · 访问量 168

猜你喜欢

转载自blog.csdn.net/weixin_44303986/article/details/103945794
03
今日推荐