检查一下,有需要优化的嘛
来源:2-7 编程练习
慕斯6325516
2020-01-08 19:38:52
$('li').hover(
function(){
$(this).css({'font-size':'25px','color':'red','font-weight':'bold'})},
function(){
$(this).css({'font-size':'14px','color':'black','font-weight':'400'})
});
1回答
同学你好,代码实现可以。
建议:浏览器一般默认字体大小为16px,代码中设置14px会变小,看起来不美观,可以调整一下
如果我的回答帮助到了你,欢迎采纳,祝学习愉快~
相似问题